summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-05-27 16:45:18 +0000
committerDevang Patel <dpatel@apple.com>2011-05-27 16:45:18 +0000
commit3c6aed2d98f0213cd52ca90df40dd74ceb0302a8 (patch)
tree8b28d116f0f5a2defe8d325e9444146d1462270f /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent0373d007e9324bf144838bcbe229264794bf024d (diff)
downloadbcm5719-llvm-3c6aed2d98f0213cd52ca90df40dd74ceb0302a8.tar.gz
bcm5719-llvm-3c6aed2d98f0213cd52ca90df40dd74ceb0302a8.zip
Select DW_AT_const_value size based on variable size.
llvm-svn: 132193
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index f0ba6757238..53580d76aa0 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud