diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-07-12 03:33:48 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-07-12 03:33:48 +0000 |
| commit | dbdfe62c3ff0e1fc39954edde304e731082d8a1a (patch) | |
| tree | 4ea31b147f88e472d6e04d4242312ea2a576e90e /llvm/lib/DebugInfo | |
| parent | 85967fa3c48528ad92d08e53160f4dfc5c5c960c (diff) | |
| download | bcm5719-llvm-dbdfe62c3ff0e1fc39954edde304e731082d8a1a.tar.gz bcm5719-llvm-dbdfe62c3ff0e1fc39954edde304e731082d8a1a.zip | |
Dump enum unique names.
llvm-svn: 275152
Diffstat (limited to 'llvm/lib/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/TypeDumper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp index 2ff91e727ee..345e2a49888 100644 --- a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp +++ b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp @@ -286,12 +286,15 @@ Error CVTypeDumper::visitUnion(UnionRecord &Union) { } Error CVTypeDumper::visitEnum(EnumRecord &Enum) { + uint16_t Props = static_cast<uint16_t>(Enum.getOptions()); W->printNumber("NumEnumerators", Enum.getMemberCount()); W->printFlags("Properties", uint16_t(Enum.getOptions()), makeArrayRef(ClassOptionNames)); printTypeIndex("UnderlyingType", Enum.getUnderlyingType()); printTypeIndex("FieldListType", Enum.getFieldList()); W->printString("Name", Enum.getName()); + if (Props & uint16_t(ClassOptions::HasUniqueName)) + W->printString("LinkageName", Enum.getUniqueName()); Name = Enum.getName(); return Error::success(); } |

