OSDN Git Service

DWARF emission: Remove unnecessary/redundant DIE reference code
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Oct 2013 22:00:44 +0000 (22:00 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Oct 2013 22:00:44 +0000 (22:00 +0000)
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

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index e0b5557..dd2bcf2 100644 (file)
@@ -2050,13 +2050,6 @@ void DwarfDebug::emitDIE(DIE *Die, std::vector<DIEAbbrev *> *Abbrevs) {
       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]);