diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-04-08 21:37:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-04-08 21:37:21 +0000 |
commit | 74d92c19247067189b2d62854cad16dae0487068 (patch) | |
tree | 56b403bcc0fd56f65c58a91a4975527994364fb4 /llvm/include | |
parent | ecd7043883c79d87d737001d8e1d780d50cfc8ac (diff) | |
download | bcm5719-llvm-74d92c19247067189b2d62854cad16dae0487068.tar.gz bcm5719-llvm-74d92c19247067189b2d62854cad16dae0487068.zip |
Change -arm-trap-func= into a non-arm specific option. Now Intrinsic::trap is lowered into a call to the specified trap function at sdisel time.
llvm-svn: 129152
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Target/TargetOptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h index fc80a06deba..cea8d5d8a2d 100644 --- a/llvm/include/llvm/Target/TargetOptions.h +++ b/llvm/include/llvm/Target/TargetOptions.h @@ -161,6 +161,11 @@ namespace llvm { /// runtime library has integer divmod libcalls. extern bool HasDivModLibcall; + /// getTrapFunctionName - If this returns a non-empty string, this means isel + /// should lower Intrinsic::trap to a call to the specified function name + /// instead of an ISD::TRAP node. + extern StringRef getTrapFunctionName(); + } // End llvm namespace #endif |