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

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 16:01:37 PDT 2016


zturner added inline comments.

================
Comment at: lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:811-812
@@ +810,4 @@
+  case dwarf::DW_ATE_unsigned_char:
+    if (ByteSize == 1)
+      STK = SimpleTypeKind::UnsignedCharacter;
+    break;
----------------
```
else if (ByteSize == 2)
  STK = SimpleTypeKind::Character16;
else if (ByteSize == 4)
  STK = SimpleTypeKind::Character32;
```

Is there any way to distinguish `wchar_t` from `DW_ATE_unsigned_char` with `ByteSize == 2`?


http://reviews.llvm.org/D20840





More information about the llvm-commits mailing list