[PATCH] D20840: [codeview] Translate basic DITypes to CV type records

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 18:16:11 PDT 2016


majnemer added inline comments.

================
Comment at: lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:824-827
@@ +823,6 @@
+  // Apply some fixups based on the source-level type name.
+  if (STK == SimpleTypeKind::Int32 && Ty->getName() == "long")
+    STK = SimpleTypeKind::Int32Long;
+  if (STK == SimpleTypeKind::UInt32 && Ty->getName() == "unsigned long")
+    STK = SimpleTypeKind::UInt32Long;
+  if ((STK == SimpleTypeKind::Int16Short ||
----------------
I don't see a test for this.  `long x;` gives me "long int".


http://reviews.llvm.org/D20840





More information about the llvm-commits mailing list