aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-05 05:36:30 +0000
committerChris Lattner <sabre@nondot.org>2004-01-05 05:36:30 +0000
commit77b1330ece6ea40b3b7700fe13e2ca64bd494203 (patch)
treede5deb5f5cfa5717d11574527f114fa0d31be2f6 /lib/CodeGen
parent6ac18751a670ba98d3fb75d5d06998e558704768 (diff)
downloadexternal_llvm-77b1330ece6ea40b3b7700fe13e2ca64bd494203.zip
external_llvm-77b1330ece6ea40b3b7700fe13e2ca64bd494203.tar.gz
external_llvm-77b1330ece6ea40b3b7700fe13e2ca64bd494203.tar.bz2
Add VMCore and code generator support for debugging intrinsics. By default
code generators completely ignore them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/IntrinsicLowering.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp
index 4815be9..52faefd 100644
--- a/lib/CodeGen/IntrinsicLowering.cpp
+++ b/lib/CodeGen/IntrinsicLowering.cpp
@@ -48,6 +48,14 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
// Insert the call to abort
new CallInst(M->getOrInsertFunction("abort", Type::VoidTy, 0), "", CI);
break;
+
+ case Intrinsic::dbg_stoppoint:
+ 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
}
assert(CI->use_empty() &&