aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-08-18 16:49:29 +0000
committerZachary Turner <zturner@google.com>2016-08-18 16:49:29 +0000
commitac5763eca45d20466eb180928ec5afe231c11d4e (patch)
treed8e836c16af8b15a167ec7bab10e42bd4e615aa3 /llvm/lib/DebugInfo/CodeView/EnumTables.cpp
parentc6bf547564088ad0ba0b2f281ffa813974f66bda (diff)
downloadllvm-ac5763eca45d20466eb180928ec5afe231c11d4e.zip
llvm-ac5763eca45d20466eb180928ec5afe231c11d4e.tar.gz
llvm-ac5763eca45d20466eb180928ec5afe231c11d4e.tar.bz2
Resubmit "Write the TPI stream from a PDB to Yaml."
The original patch was breaking some buildbots due to an incorrect ordering of function definitions which caused some compilers to recognize a definition but others to not. llvm-svn: 279089
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);
}