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.
llvm-svn: 198938
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 6f32be0..7df8672 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -159,7 +159,7 @@
if (T.isOSBinFormatELF() || T.isArch64Bit())
return "-m:e";
assert(T.isOSBinFormatCOFF());
- return "-m:c";
+ return "-m:w";
}
static const LayoutAlignElem DefaultAlignments[] = {
@@ -334,8 +334,8 @@
case 'm':
ManglingMode = MM_Mips;
break;
- case 'c':
- ManglingMode = MM_COFF;
+ case 'w':
+ ManglingMode = MM_WINCOFF;
break;
}
break;
@@ -525,8 +525,8 @@
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";