From ad64aeac44841df272456c65e40ece9476ae3b1e Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 23 Dec 2013 23:50:20 +0000 Subject: Debug info: Add enumerators to the __apple_names accelerator table. rdar://problem/11516681. llvm-svn: 197927 --- llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 69240f870f9..df31099b829 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1773,6 +1773,9 @@ void DwarfUnit::constructEnumTypeDIE(DIE &Buffer, DICompositeType CTy) { int64_t Value = Enum.getEnumValue(); addSInt(Enumerator, dwarf::DW_AT_const_value, dwarf::DW_FORM_sdata, Value); + + // Add the enumerator to the __apple_names accelerator table. + addAccelName(Name, Enumerator); } } DIType DTy = resolve(CTy.getTypeDerivedFrom()); -- cgit v1.2.3