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:
Jim Laskey 2006-03-24 21:10:36 +00:00
parent 2ca956f8de
commit 5b4939907e

View File

@ -1552,10 +1552,8 @@ DIE *DwarfWriter::NewScopeVariable(DebugVariable *DV, CompileUnit *Unit) {
// Add computation for variable.
DIEBlock *Block = new DIEBlock();
if (Location.isRegister()) {
// FIXME - This is a real hack.
Block->AddUInt(DW_FORM_data1, DW_OP_reg0 + Location.getRegister());
} else {
// FIXME - This is a real hack.
Block->AddUInt(DW_FORM_data1, DW_OP_breg0 + Location.getRegister());
Block->AddUInt(DW_FORM_sdata, Location.getOffset());
}