Author: dpatel Date: Wed Jan 30 11:43:03 2008 New Revision: 46560 URL: http://llvm.org/viewvc/llvm-project?rev=46560&view=rev Log: Enable exception handling if it is supported.
Modified: llvm/trunk/tools/lto/lto.cpp Modified: llvm/trunk/tools/lto/lto.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=46560&r1=46559&r2=46560&view=diff ============================================================================== --- llvm/trunk/tools/lto/lto.cpp (original) +++ llvm/trunk/tools/lto/lto.cpp Wed Jan 30 11:43:03 2008 @@ -31,6 +31,7 @@ #include "llvm/Analysis/Verifier.h" #include "llvm/CodeGen/FileWriters.h" #include "llvm/Target/SubtargetFeature.h" +#include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachineRegistry.h" @@ -266,7 +267,11 @@ if (!Target) return LTO_NO_TARGET; - + + // If target supports exception handling then enable it now. + if (Target->getTargetAsmInfo()->doesSupportExceptionHandling()) + ExceptionHandling = true; + // Start off with a verification pass. Passes.add(createVerifierPass()); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits