[unroll] Remove pointless dyn_cast<>s to Instruction - the users of an
[oota-llvm.git] / lib / CodeGen / TargetOptionsImpl.cpp
index 3ca2017550cf2c3e61a74ea4dd31a85b220dfc72..618d903a0904a7ff268274804e4cebf899381693 100644 (file)
@@ -51,3 +51,10 @@ bool TargetOptions::HonorSignDependentRoundingFPMath() const {
 StringRef TargetOptions::getTrapFunctionName() const {
   return TrapFuncName;
 }
+
+/// getCFIFuncName - If this returns a non-empty string, then it is the name of
+/// the function that gets called on CFI violations in CFI non-enforcing mode
+/// (!TargetOptions::CFIEnforcing).
+StringRef TargetOptions::getCFIFuncName() const {
+  return CFIFuncName;
+}