summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit03b274911fd75e514e084f1b3bb56178f950fe2d (patch)
treecbc72e9e1a1f71c9d10c149c9e95b5d4d5d2abf3 /llvm/lib
parent63e92754d0a141c95cf769171ff7b798b150b581 (diff)
downloadbcm5719-llvm-03b274911fd75e514e084f1b3bb56178f950fe2d.tar.gz
bcm5719-llvm-03b274911fd75e514e084f1b3bb56178f950fe2d.zip
Exception handling has been implemented.
llvm-svn: 39732
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 500f0e0941c..4e3982df62a 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud