From: David Blaikie Date: Thu, 24 Oct 2013 22:00:44 +0000 (+0000) Subject: DWARF emission: Remove unnecessary/redundant DIE reference code X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9e39e0d56d105f97b9d8f851403619bb0d9f780d;p=oota-llvm.git DWARF emission: Remove unnecessary/redundant DIE reference code The default case at the end of the switch handles this just fine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193374 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index e0b5557ffcc..dd2bcf2daed 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2050,13 +2050,6 @@ void DwarfDebug::emitDIE(DIE *Die, std::vector *Abbrevs) { Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr)); switch (Attr) { - case dwarf::DW_AT_abstract_origin: { - DIEEntry *E = cast(Values[i]); - DIE *Origin = E->getEntry(); - unsigned Addr = Origin->getOffset(); - Asm->EmitInt32(Addr); - break; - } case dwarf::DW_AT_ranges: { // DW_AT_range Value encodes offset in debug_range section. DIEInteger *V = cast(Values[i]);