mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Sink DwarfUnit::addLocationList down into DwarfCompileUnit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ce60ab99d
commit
51af3541a8
@ -800,4 +800,13 @@ void DwarfCompileUnit::addComplexAddress(const DbgVariable &DV, DIE &Die,
|
||||
// Now attach the location information to the DIE.
|
||||
addBlock(Die, Attribute, Loc);
|
||||
}
|
||||
|
||||
/// Add a Dwarf loclistptr attribute data and value.
|
||||
void DwarfCompileUnit::addLocationList(DIE &Die, dwarf::Attribute Attribute,
|
||||
unsigned Index) {
|
||||
DIEValue *Value = new (DIEValueAllocator) DIELocList(Index);
|
||||
dwarf::Form Form = DD->getDwarfVersion() >= 4 ? dwarf::DW_FORM_sec_offset
|
||||
: dwarf::DW_FORM_data4;
|
||||
Die.addValue(Attribute, Form, Value);
|
||||
}
|
||||
} // end llvm namespace
|
||||
|
@ -207,6 +207,9 @@ public:
|
||||
void addComplexAddress(const DbgVariable &DV, DIE &Die,
|
||||
dwarf::Attribute Attribute,
|
||||
const MachineLocation &Location);
|
||||
|
||||
/// Add a Dwarf loclistptr attribute data and value.
|
||||
void addLocationList(DIE &Die, dwarf::Attribute Attribute, unsigned Index);
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
|
@ -232,16 +232,6 @@ void DwarfUnit::addExpr(DIELoc &Die, dwarf::Form Form, const MCExpr *Expr) {
|
||||
Die.addValue((dwarf::Attribute)0, Form, Value);
|
||||
}
|
||||
|
||||
/// addLocationList - Add a Dwarf loclistptr attribute data and value.
|
||||
///
|
||||
void DwarfUnit::addLocationList(DIE &Die, dwarf::Attribute Attribute,
|
||||
unsigned Index) {
|
||||
DIEValue *Value = new (DIEValueAllocator) DIELocList(Index);
|
||||
dwarf::Form Form = DD->getDwarfVersion() >= 4 ? dwarf::DW_FORM_sec_offset
|
||||
: dwarf::DW_FORM_data4;
|
||||
Die.addValue(Attribute, Form, Value);
|
||||
}
|
||||
|
||||
/// addLabel - Add a Dwarf label attribute data and value.
|
||||
///
|
||||
void DwarfUnit::addLabel(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
||||
|
@ -222,9 +222,6 @@ public:
|
||||
|
||||
void addLabel(DIELoc &Die, dwarf::Form Form, const MCSymbol *Label);
|
||||
|
||||
/// addLocationList - Add a Dwarf loclistptr attribute data and value.
|
||||
void addLocationList(DIE &Die, dwarf::Attribute Attribute, unsigned Index);
|
||||
|
||||
/// addSectionOffset - Add an offset into a section attribute data and value.
|
||||
///
|
||||
void addSectionOffset(DIE &Die, dwarf::Attribute Attribute, uint64_t Integer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user