summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-13 13:07:37 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-13 13:07:37 +0000
commitacb6e342777a501ef6d9ac2e70d0c19086a6c2d7 (patch)
tree91e273bc0d11aa98f37f528c77188ee873a7ddf1 /llvm/lib/CodeGen
parentfe4c7fb7ae934d1d2edf51b9ca762d378e2a2b77 (diff)
downloadbcm5719-llvm-acb6e342777a501ef6d9ac2e70d0c19086a6c2d7.tar.gz
bcm5719-llvm-acb6e342777a501ef6d9ac2e70d0c19086a6c2d7.zip
Handle the removal of the debug chain.
llvm-svn: 26729
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp8
2 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index 82ca3c254b2..316d1ad2f64 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp
@@ -403,8 +403,6 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
case Intrinsic::dbg_region_start:
case Intrinsic::dbg_region_end:
case Intrinsic::dbg_func_start:
- if (CI->getType() != Type::VoidTy)
- CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
break; // Simply strip out debugging intrinsics
case Intrinsic::memcpy_i32:
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index f1afeb93e3d..27e90877a2c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -966,19 +966,19 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
case Intrinsic::dbg_stoppoint: {
MachineDebugInfo *DebugInfo = DAG.getMachineDebugInfo();
- if (DebugInfo && DebugInfo->Verify(I.getOperand(4))) {
+ if (DebugInfo && DebugInfo->Verify(I.getOperand(3))) {
std::vector<SDOperand> Ops;
// Input Chain
Ops.push_back(getRoot());
// line number
- Ops.push_back(getValue(I.getOperand(2)));
+ Ops.push_back(getValue(I.getOperand(1)));
// column
- Ops.push_back(getValue(I.getOperand(3)));
+ Ops.push_back(getValue(I.getOperand(2)));
- DebugInfoDesc *DD = DebugInfo->getDescFor(I.getOperand(4));
+ DebugInfoDesc *DD = DebugInfo->getDescFor(I.getOperand(3));
assert(DD && "Not a debug information descriptor");
CompileUnitDesc *CompileUnit = dyn_cast<CompileUnitDesc>(DD);
assert(CompileUnit && "Not a compile unit");
OpenPOWER on IntegriCloud