[llvm-commits] [llvm] r46560 - /llvm/trunk/tools/lto/lto.cpp
Devang Patel
dpatel at apple.com
Wed Jan 30 09:43:03 PST 2008
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());
More information about the llvm-commits
mailing list