summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-04-30 22:35:14 +0000
committerAdrian Prantl <aprantl@apple.com>2013-04-30 22:35:14 +0000
commita2888e71eb3f7d4fed348fd0d659355099bd1505 (patch)
treee82e940f52451bc65e31e61f50ed1a8e3eb28b7a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent83633259628b740dcd1443ef04dde3e8b6764c93 (diff)
downloadbcm5719-llvm-a2888e71eb3f7d4fed348fd0d659355099bd1505.tar.gz
bcm5719-llvm-a2888e71eb3f7d4fed348fd0d659355099bd1505.zip
Temporarily revert "Change the informal convention of DBG_VALUE so that we can express a"
because it breaks some buildbots. This reverts commit 180816. llvm-svn: 180819
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index eff4c219451..6e613d606f4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4413,9 +4413,8 @@ SelectionDAGBuilder::EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable,
return false;
MachineInstrBuilder MIB = BuildMI(MF, getCurDebugLoc(),
- TII->get(TargetOpcode::DBG_VALUE),
- Offset != 0,
- Reg, Offset, Variable);
+ TII->get(TargetOpcode::DBG_VALUE))
+ .addReg(Reg, RegState::Debug).addImm(Offset).addMetadata(Variable);
FuncInfo.ArgDbgValues.push_back(&*MIB);
return true;
}
OpenPOWER on IntegriCloud