mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
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
This commit is contained in:
parent
200bb6df7f
commit
9e39e0d56d
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user