aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-08-16 23:28:54 +0000
committerZachary Turner <zturner@google.com>2016-08-16 23:28:54 +0000
commit8321ba5437f7e35f37291473fc1bafc53d27c62f (patch)
tree5d60f9bcf99776b8f3215e25e764d518e2c5f6a7 /llvm/lib/DebugInfo/CodeView/EnumTables.cpp
parenta36f4a25b313ddddeceb77ebc2328e22ac4fdc5b (diff)
downloadllvm-8321ba5437f7e35f37291473fc1bafc53d27c62f.zip
llvm-8321ba5437f7e35f37291473fc1bafc53d27c62f.tar.gz
llvm-8321ba5437f7e35f37291473fc1bafc53d27c62f.tar.bz2
Write the TPI stream from a PDB to Yaml.
Reviewed By: ruiu, rnk Differential Revision: https://reviews.llvm.org/D23226 llvm-svn: 278869
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/EnumTables.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/EnumTables.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/EnumTables.cpp b/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
index d59271b..0e20bcb 100644
--- a/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
+++ b/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
@@ -24,6 +24,12 @@ static const EnumEntry<SymbolKind> SymbolTypeNames[] = {
#undef CV_SYMBOL
};
+static const EnumEntry<TypeLeafKind> TypeLeafNames[] = {
+#define CV_TYPE(name, val) {#name, name},
+#include "llvm/DebugInfo/CodeView/TypeRecords.def"
+#undef CV_TYPE
+};
+
static const EnumEntry<uint16_t> RegisterNames[] = {
CV_ENUM_CLASS_ENT(RegisterId, Unknown),
CV_ENUM_CLASS_ENT(RegisterId, VFrame),
@@ -324,6 +330,10 @@ ArrayRef<EnumEntry<SymbolKind>> getSymbolTypeNames() {
return makeArrayRef(SymbolTypeNames);
}
+ArrayRef<EnumEntry<TypeLeafKind>> getTypeLeafNames() {
+ return makeArrayRef(TypeLeafNames);
+}
+
ArrayRef<EnumEntry<uint16_t>> getRegisterNames() {
return makeArrayRef(RegisterNames);
}