Flag to control exception handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33628 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index f6b3fd0..8428653 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -29,6 +29,7 @@
bool FiniteOnlyFPMathOption;
bool UseSoftFloat;
bool NoZerosInBSS;
+ bool ExceptionHandling;
Reloc::Model RelocationModel;
CodeModel::Model CMModel;
}
@@ -67,6 +68,11 @@
cl::desc("Don't place zero-initialized symbols into bss section"),
cl::location(NoZerosInBSS),
cl::init(false));
+ cl::opt<bool, true>
+ EnableExceptionHandling("exception-handling",
+ cl::desc("Exception handling should be emitted."),
+ cl::location(ExceptionHandling),
+ cl::init(false));
cl::opt<llvm::Reloc::Model, true>
DefRelocationModel(