Updated.
[oota-llvm.git] / lib / Target / TargetMachine.cpp
index f6b3fd09f0bc44dad308e70b2e2db51520149cb0..7f5ad587211dcd67d5caaf78e2e83be57503e969 100644 (file)
@@ -29,6 +29,7 @@ namespace llvm {
   bool FiniteOnlyFPMathOption;
   bool UseSoftFloat;
   bool NoZerosInBSS;
+  bool ExceptionHandling;
   Reloc::Model RelocationModel;
   CodeModel::Model CMModel;
 }
@@ -67,6 +68,11 @@ namespace {
                cl::desc("Don't place zero-initialized symbols into bss section"),
                cl::location(NoZerosInBSS),
                cl::init(false));
+  cl::opt<bool, true>
+  EnableExceptionHandling("enable-eh",
+               cl::desc("Exception handling should be emitted."),
+               cl::location(ExceptionHandling),
+               cl::init(false));
 
   cl::opt<llvm::Reloc::Model, true>
   DefRelocationModel(