[llvm] r193374 - DWARF emission: Remove unnecessary/redundant DIE reference code

David Blaikie dblaikie at gmail.com
Thu Oct 24 15:00:44 PDT 2013


Author: dblaikie
Date: Thu Oct 24 17:00:44 2013
New Revision: 193374

URL: http://llvm.org/viewvc/llvm-project?rev=193374&view=rev
Log:
DWARF emission: Remove unnecessary/redundant DIE reference code

The default case at the end of the switch handles this just fine.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=193374&r1=193373&r2=193374&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Oct 24 17:00:44 2013
@@ -2050,13 +2050,6 @@ void DwarfDebug::emitDIE(DIE *Die, std::
       Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr));
 
     switch (Attr) {
-    case dwarf::DW_AT_abstract_origin: {
-      DIEEntry *E = cast<DIEEntry>(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<DIEInteger>(Values[i]);





More information about the llvm-commits mailing list