From 4479a5c08e4aa318545df88781b203f967ff5d51 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 15 Apr 2016 18:26:45 +0000 Subject: [PATCH] [codeview] Dump char16_t and char32_t simple types git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266465 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo/CodeView/TypeIndex.h | 2 ++ tools/llvm-readobj/COFFDumper.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/llvm/DebugInfo/CodeView/TypeIndex.h b/include/llvm/DebugInfo/CodeView/TypeIndex.h index 9ff2920f5d5..2bbcb0b7b02 100644 --- a/include/llvm/DebugInfo/CodeView/TypeIndex.h +++ b/include/llvm/DebugInfo/CodeView/TypeIndex.h @@ -27,6 +27,8 @@ enum class SimpleTypeKind : uint32_t { UnsignedCharacter = 0x0020, // 8 bit unsigned NarrowCharacter = 0x0070, // really a char WideCharacter = 0x0071, // wide char + Character16 = 0x007a, // char16_t + Character32 = 0x007b, // char32_t SByte = 0x0068, // 8 bit signed int Byte = 0x0069, // 8 bit unsigned int diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp index 781185af849..da869817f86 100644 --- a/tools/llvm-readobj/COFFDumper.cpp +++ b/tools/llvm-readobj/COFFDumper.cpp @@ -654,6 +654,8 @@ static const EnumEntry SimpleTypeNames[] = { {"unsigned char*", SimpleTypeKind::UnsignedCharacter}, {"char*", SimpleTypeKind::NarrowCharacter}, {"wchar_t*", SimpleTypeKind::WideCharacter}, + {"char16_t*", SimpleTypeKind::Character16}, + {"char32_t*", SimpleTypeKind::Character32}, {"__int8*", SimpleTypeKind::SByte}, {"unsigned __int8*", SimpleTypeKind::Byte}, {"short*", SimpleTypeKind::Int16Short},