llvm.org GIT mirror llvm / a9ad60c
Use 'w' instead of 'c' to represent the win32 mangling. This change was requested to avoid confusion if we ever support non windows coff systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198938 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
3 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
11641164 * ``m``: Mips mangling: Private symbols get a ``$`` prefix.
11651165 * ``o``: Mach-O mangling: Private symbols get ``L`` prefix. Other
11661166 symbols get a ``_`` prefix.
1167 * ``c``: COFF prefix: Similar to Mach-O, but stdcall and fastcall
1167 * ``w``: Windows COFF prefix: Similar to Mach-O, but stdcall and fastcall
11681168 functions also get a suffix based on the frame size.
11691169 ``n::...``
11701170 This specifies a set of native integer widths for the target CPU in
103103 MM_None,
104104 MM_ELF,
105105 MM_MachO,
106 MM_COFF,
106 MM_WINCOFF,
107107 MM_Mips
108108 };
109109 ManglingModeT ManglingMode;
233233 }
234234
235235 bool hasMicrosoftFastStdCallMangling() const {
236 return ManglingMode == MM_COFF;
236 return ManglingMode == MM_WINCOFF;
237237 }
238238
239239 bool hasLinkerPrivateGlobalPrefix() const {
253253 case MM_Mips:
254254 return '\0';
255255 case MM_MachO:
256 case MM_COFF:
256 case MM_WINCOFF:
257257 return '_';
258258 }
259259 llvm_unreachable("invalid mangling mode");
268268 case MM_Mips:
269269 return "$";
270270 case MM_MachO:
271 case MM_COFF:
271 case MM_WINCOFF:
272272 return "L";
273273 }
274274 llvm_unreachable("invalid mangling mode");
158158 if (T.isOSBinFormatELF() || T.isArch64Bit())
159159 return "-m:e";
160160 assert(T.isOSBinFormatCOFF());
161 return "-m:c";
161 return "-m:w";
162162 }
163163
164164 static const LayoutAlignElem DefaultAlignments[] = {
333333 case 'm':
334334 ManglingMode = MM_Mips;
335335 break;
336 case 'c':
337 ManglingMode = MM_COFF;
336 case 'w':
337 ManglingMode = MM_WINCOFF;
338338 break;
339339 }
340340 break;
524524 case MM_MachO:
525525 OS << "-m:o";
526526 break;
527 case MM_COFF:
528 OS << "-m:c";
527 case MM_WINCOFF:
528 OS << "-m:w";
529529 break;
530530 case MM_Mips:
531531 OS << "-m:m";