[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp

Jim Laskey jlaskey at apple.com
Mon Jan 29 12:48:52 PST 2007



Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.59 -> 1.60
---
Log message:

Flag to control exception handling.

---
Diffs of the changes:  (+6 -0)

 TargetMachine.cpp |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.59 llvm/lib/Target/TargetMachine.cpp:1.60
--- llvm/lib/Target/TargetMachine.cpp:1.59	Wed Jan 17 04:33:08 2007
+++ llvm/lib/Target/TargetMachine.cpp	Mon Jan 29 14:48:32 2007
@@ -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(






More information about the llvm-commits mailing list