aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-02-28 17:22:56 -0800
committerZequan Wu <zequanwu@google.com>2022-03-01 13:39:51 -0800
commit5c9e20d7d0a71439a95875ba6067f9c0fc7a4e04 (patch)
tree4bb00fe425a286a91978ac3902a9eb0067725194 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentd88dfd2b311d5f7f8ab9faa0edfd380c1fd2d2b2 (diff)
downloadllvm-5c9e20d7d0a71439a95875ba6067f9c0fc7a4e04.zip
llvm-5c9e20d7d0a71439a95875ba6067f9c0fc7a4e04.tar.gz
llvm-5c9e20d7d0a71439a95875ba6067f9c0fc7a4e04.tar.bz2
[PDB] Add char8_t type
Differential Revision: https://reviews.llvm.org/D120690
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 6cc30eb..27d0335 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -1826,6 +1826,7 @@ TypeIndex CodeViewDebug::lowerTypeBasic(const DIBasicType *Ty) {
break;
case dwarf::DW_ATE_UTF:
switch (ByteSize) {
+ case 1: STK = SimpleTypeKind::Character8; break;
case 2: STK = SimpleTypeKind::Character16; break;
case 4: STK = SimpleTypeKind::Character32; break;
}