diff options
author | Zachary Turner <zturner@google.com> | 2016-08-18 16:49:29 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-08-18 16:49:29 +0000 |
commit | ac5763eca45d20466eb180928ec5afe231c11d4e (patch) | |
tree | d8e836c16af8b15a167ec7bab10e42bd4e615aa3 /llvm/lib/DebugInfo/CodeView/EnumTables.cpp | |
parent | c6bf547564088ad0ba0b2f281ffa813974f66bda (diff) | |
download | llvm-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.cpp | 10 |
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); } |