summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-07-11 16:59:20 +0000
committerDuncan Sands <baldrick@free.fr>2007-07-11 16:59:20 +0000
commitc3751600b7a5dee550c5e50cb83065630759467f (patch)
tree3ef53584de33d7c378ed6ef2e8991f1a081ee7d6 /lib
parent082ced939152e141d6e6e82dc56ecba13078ae18 (diff)
downloadexternal_llvm-c3751600b7a5dee550c5e50cb83065630759467f.zip
external_llvm-c3751600b7a5dee550c5e50cb83065630759467f.tar.gz
external_llvm-c3751600b7a5dee550c5e50cb83065630759467f.tar.bz2
Exception handling has been implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 500f0e0..4e3982d 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -43,11 +43,10 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
-
- // FIXME: Implement the invoke/unwind instructions!
+
if (!ExceptionHandling)
PM.add(createLowerInvokePass(getTargetLowering()));
-
+
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());