summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-05-11 21:33:49 +0000
committerChad Rosier <mcrosier@apple.com>2012-05-11 21:33:49 +0000
commit226ddf5278dd9a9d2d74d859d387bf5b6bac1926 (patch)
tree328d6efbd9eb4995a989c5e4c89270c657cf24ff /lib
parent927ede5a874e9a329f96ed85cb37ab07d2a55528 (diff)
downloadllvm-226ddf5278dd9a9d2d74d859d387bf5b6bac1926.tar.gz
llvm-226ddf5278dd9a9d2d74d859d387bf5b6bac1926.tar.bz2
llvm-226ddf5278dd9a9d2d74d859d387bf5b6bac1926.tar.xz
[fast-isel] Add support for selecting @llvm.trap().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 9dff0171c3..97131cd698 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -2443,6 +2443,10 @@ bool ARMFastISel::SelectIntrinsicCall(const IntrinsicInst &I) {
return SelectCall(&I, "memset");
}
+ case Intrinsic::trap: {
+ BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(ARM::TRAP));
+ return true;
+ }
}
}