mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Sink DwarfUnit::addVariableAddress into DwarfCompileUnit since type units don't have variables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -411,19 +411,6 @@ void DwarfUnit::addSourceLine(DIE &Die, DINameSpace NS) {
|
||||
addSourceLine(Die, NS.getLineNumber(), NS.getFilename(), NS.getDirectory());
|
||||
}
|
||||
|
||||
/// addVariableAddress - Add DW_AT_location attribute for a
|
||||
/// DbgVariable based on provided MachineLocation.
|
||||
void DwarfUnit::addVariableAddress(const DbgVariable &DV, DIE &Die,
|
||||
MachineLocation Location) {
|
||||
if (DV.variableHasComplexAddress())
|
||||
addComplexAddress(DV, Die, dwarf::DW_AT_location, Location);
|
||||
else if (DV.isBlockByrefVariable())
|
||||
addBlockByrefAddress(DV, Die, dwarf::DW_AT_location, Location);
|
||||
else
|
||||
addAddress(Die, dwarf::DW_AT_location, Location,
|
||||
DV.getVariable().isIndirect());
|
||||
}
|
||||
|
||||
/// addRegisterOp - Add register operand.
|
||||
// FIXME: Ideally, this would share the implementation with
|
||||
// AsmPrinter::EmitDwarfRegOpPiece.
|
||||
|
Reference in New Issue
Block a user