diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-14 04:52:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-14 04:52:06 +0000 |
commit | cc42d2c3ccd17a82c3c0abc95a720e183e84dbdd (patch) | |
tree | 890b107ec01b60dae5b31f5a6e7299d768517531 /lib/CodeGen/IntrinsicLowering.cpp | |
parent | 9f87a6ce6fabac312162752805d07aed3a04d48b (diff) |
A target that doesn't support these intrinsics will still meet spec (the
intrinsic will always produce zero), but it will behave unexpectedly, so
warn like GCC does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | lib/CodeGen/IntrinsicLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index d0030eaea6..99357c14b6 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -51,6 +51,9 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { case Intrinsic::returnaddress: case Intrinsic::frameaddress: + std::cerr << "WARNING: this target does not support the llvm." + << (Callee->getIntrinsicID() == Intrinsic::returnaddress ? + "return" : "frame") << "address intrinsic.\n"; CI->replaceAllUsesWith(ConstantPointerNull::get( cast<PointerType>(CI->getType()))); break; |