diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-10-24 22:00:44 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-10-24 22:00:44 +0000 |
commit | 9e39e0d56d105f97b9d8f851403619bb0d9f780d (patch) | |
tree | 7c53cced086bfa16c12840642e6230fdafa9aaf7 /lib/CodeGen/AsmPrinter | |
parent | 200bb6df7ff84e2129bcc0f4f79d6d96d47eb645 (diff) | |
download | llvm-9e39e0d56d105f97b9d8f851403619bb0d9f780d.tar.gz llvm-9e39e0d56d105f97b9d8f851403619bb0d9f780d.tar.bz2 llvm-9e39e0d56d105f97b9d8f851403619bb0d9f780d.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index e0b5557ffc..dd2bcf2dae 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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]); |