aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-01-29 20:48:32 +0000
committerJim Laskey <jlaskey@mac.com>2007-01-29 20:48:32 +0000
commit1b340dc8e20dc1ce204ebdcc2ff11c3dd36888f1 (patch)
treed6b3fe3a8d4075a9338beafc76fc59f27f314cf1 /lib/Target/TargetMachine.cpp
parentf82aa1cf73b6cdd0c6713ad365bae1204755ee2f (diff)
Flag to control exception handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r--lib/Target/TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index f6b3fd09f0..842865391d 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -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("exception-handling",
+ cl::desc("Exception handling should be emitted."),
+ cl::location(ExceptionHandling),
+ cl::init(false));
cl::opt<llvm::Reloc::Model, true>
DefRelocationModel(