mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 12:30:44 +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:
parent
2ca956f8de
commit
5b4939907e
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user