mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Select DW_AT_const_value size based on variable size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -712,8 +712,9 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, DbgScope *Scope) {
|
||||
updated = true;
|
||||
}
|
||||
else if (DVInsn->getOperand(0).isImm())
|
||||
updated = VariableCU->addConstantValue(VariableDie,
|
||||
DVInsn->getOperand(0));
|
||||
updated =
|
||||
VariableCU->addConstantValue(VariableDie, DVInsn->getOperand(0),
|
||||
DV->getType());
|
||||
else if (DVInsn->getOperand(0).isFPImm())
|
||||
updated =
|
||||
VariableCU->addConstantFPValue(VariableDie, DVInsn->getOperand(0));
|
||||
|
Reference in New Issue
Block a user