diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-27 16:45:18 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-27 16:45:18 +0000 |
commit | b58128e2b2375173aafb07905bd53014d622e4ba (patch) | |
tree | 13f2506a2ed53e6c0782eb3b8bcac2ee2ded9d50 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 25b15d8502cf80e8dd332ba359ae2690885e4505 (diff) |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f0ba675723..53580d76aa 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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)); |