From 4e1b79459fcf72216cdc42a59953e172c60e15ca Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Tue, 8 Apr 2008 00:10:24 +0000 Subject: Implement new llc flag -disable-required-unwind-tables. Corresponds to -fno-unwind-tables (usually default in gcc). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49361 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetMachine.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/Target/TargetMachine.cpp') diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index e4f633f111..e6f080d328 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -31,6 +31,7 @@ namespace llvm { bool UseSoftFloat; bool NoZerosInBSS; bool ExceptionHandling; + bool UnwindTablesOptional; Reloc::Model RelocationModel; CodeModel::Model CMModel; bool PerformTailCallOpt; @@ -80,9 +81,14 @@ namespace { cl::init(false)); cl::opt EnableExceptionHandling("enable-eh", - cl::desc("Exception handling should be emitted."), + cl::desc("Emit DWARF exception handling (default if target supports)"), cl::location(ExceptionHandling), cl::init(false)); + cl::opt + DisableUnwindTables("disable-required-unwind-tables", + cl::desc("Do not require unwinding info for all functions"), + cl::location(UnwindTablesOptional), + cl::init(false)); cl::opt DefRelocationModel( -- cgit v1.2.3