diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-02 06:46:40 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-02 06:46:40 +0000 |
commit | f7435ee6cec52e0af8dc36bef55efef375cf79e6 (patch) | |
tree | e08e533bab70ae5111cc173b794d668a84a9b55d /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | 7d48be2b7b973b472030683cd13553aad5df175a (diff) | |
download | bcm5719-llvm-f7435ee6cec52e0af8dc36bef55efef375cf79e6.tar.gz bcm5719-llvm-f7435ee6cec52e0af8dc36bef55efef375cf79e6.zip |
Push DwarfUnit::addAddress down into DwarfCompileUnit
llvm-svn: 221085
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index dc855453a9f..ff2c1a5614c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -493,25 +493,6 @@ void DwarfUnit::addRegisterOffset(DIELoc &TheDie, unsigned Reg, addSInt(TheDie, dwarf::DW_FORM_sdata, Offset); } -/// addAddress - Add an address attribute to a die based on the location -/// provided. -void DwarfUnit::addAddress(DIE &Die, dwarf::Attribute Attribute, - const MachineLocation &Location, bool Indirect) { - DIELoc *Loc = new (DIEValueAllocator) DIELoc(); - - if (Location.isReg() && !Indirect) - addRegisterOpPiece(*Loc, Location.getReg()); - else { - addRegisterOffset(*Loc, Location.getReg(), Location.getOffset()); - if (Indirect && !Location.isReg()) { - addUInt(*Loc, dwarf::DW_FORM_data1, dwarf::DW_OP_deref); - } - } - - // Now attach the location information to the DIE. - addBlock(Die, Attribute, Loc); -} - /// addComplexAddress - Start with the address based on the location provided, /// and generate the DWARF information necessary to find the actual variable /// given the extra address information encoded in the DbgVariable, starting |