From: Rui Ueyama Date: Tue, 12 Jul 2016 03:33:48 +0000 (+0000) Subject: Dump enum unique names. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8df5fd2ac087ab103485155265d4dd02627a58d;p=llvm Dump enum unique names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275152 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/CodeView/TypeDumper.cpp b/lib/DebugInfo/CodeView/TypeDumper.cpp index 2ff91e727ee..345e2a49888 100644 --- a/lib/DebugInfo/CodeView/TypeDumper.cpp +++ b/lib/DebugInfo/CodeView/TypeDumper.cpp @@ -286,12 +286,15 @@ Error CVTypeDumper::visitUnion(UnionRecord &Union) { } Error CVTypeDumper::visitEnum(EnumRecord &Enum) { + uint16_t Props = static_cast(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(); }