[llvm] r275152 - Dump enum unique names.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 20:33:49 PDT 2016
Author: ruiu
Date: Mon Jul 11 22:33:48 2016
New Revision: 275152
URL: http://llvm.org/viewvc/llvm-project?rev=275152&view=rev
Log:
Dump enum unique names.
Modified:
llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp
Modified: llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp?rev=275152&r1=275151&r2=275152&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp Mon Jul 11 22:33:48 2016
@@ -286,12 +286,15 @@ Error CVTypeDumper::visitUnion(UnionReco
}
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();
}
More information about the llvm-commits
mailing list