Change -arm-trap-func= into a non-arm specific option. Now Intrinsic::trap is lowered...
[oota-llvm.git] / include / llvm / Target / TargetOptions.h
index fc80a06deba063717b3f316b62403be2757a2ef7..cea8d5d8a2d53b2f510d09c83af57c476ad9613d 100644 (file)
@@ -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