mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
Hack no more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1552,10 +1552,8 @@ DIE *DwarfWriter::NewScopeVariable(DebugVariable *DV, CompileUnit *Unit) {
|
|||||||
// Add computation for variable.
|
// Add computation for variable.
|
||||||
DIEBlock *Block = new DIEBlock();
|
DIEBlock *Block = new DIEBlock();
|
||||||
if (Location.isRegister()) {
|
if (Location.isRegister()) {
|
||||||
// FIXME - This is a real hack.
|
|
||||||
Block->AddUInt(DW_FORM_data1, DW_OP_reg0 + Location.getRegister());
|
Block->AddUInt(DW_FORM_data1, DW_OP_reg0 + Location.getRegister());
|
||||||
} else {
|
} else {
|
||||||
// FIXME - This is a real hack.
|
|
||||||
Block->AddUInt(DW_FORM_data1, DW_OP_breg0 + Location.getRegister());
|
Block->AddUInt(DW_FORM_data1, DW_OP_breg0 + Location.getRegister());
|
||||||
Block->AddUInt(DW_FORM_sdata, Location.getOffset());
|
Block->AddUInt(DW_FORM_sdata, Location.getOffset());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user