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
* ``m``: Mips mangling: Private symbols get a ``$`` prefix.
* ``o``: Mach-O mangling: Private symbols get ``L`` prefix. Other
symbols get a ``_`` prefix.
- * ``c``: COFF prefix: Similar to Mach-O, but stdcall and fastcall
+ * ``w``: Windows COFF prefix: Similar to Mach-O, but stdcall and fastcall
functions also get a suffix based on the frame size.
``n<size1>:<size2>:<size3>...``
This specifies a set of native integer widths for the target CPU in
MM_None,
MM_ELF,
MM_MachO,
- MM_COFF,
+ MM_WINCOFF,
MM_Mips
};
ManglingModeT ManglingMode;
}
bool hasMicrosoftFastStdCallMangling() const {
- return ManglingMode == MM_COFF;
+ return ManglingMode == MM_WINCOFF;
}
bool hasLinkerPrivateGlobalPrefix() const {
case MM_Mips:
return '\0';
case MM_MachO:
- case MM_COFF:
+ case MM_WINCOFF:
return '_';
}
llvm_unreachable("invalid mangling mode");
case MM_Mips:
return "$";
case MM_MachO:
- case MM_COFF:
+ case MM_WINCOFF:
return "L";
}
llvm_unreachable("invalid mangling mode");
if (T.isOSBinFormatELF() || T.isArch64Bit())
return "-m:e";
assert(T.isOSBinFormatCOFF());
- return "-m:c";
+ return "-m:w";
}
static const LayoutAlignElem DefaultAlignments[] = {
case 'm':
ManglingMode = MM_Mips;
break;
- case 'c':
- ManglingMode = MM_COFF;
+ case 'w':
+ ManglingMode = MM_WINCOFF;
break;
}
break;
case MM_MachO:
OS << "-m:o";
break;
- case MM_COFF:
- OS << "-m:c";
+ case MM_WINCOFF:
+ OS << "-m:w";
break;
case MM_Mips:
OS << "-m:m";