aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SjLjEHPrepare.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-01-21 20:10:22 +0000
committerJim Grosbach <grosbach@apple.com>2010-01-21 20:10:22 +0000
commitf056e023189e48d0337c7198d9fed32a9285a434 (patch)
tree7253149b5919e0d4a5e4018802d8fe17a2db82ba /lib/CodeGen/SjLjEHPrepare.cpp
parentd9420df548630e67b4dbfcf6901d08d436f1c1b1 (diff)
downloadexternal_llvm-f056e023189e48d0337c7198d9fed32a9285a434.zip
external_llvm-f056e023189e48d0337c7198d9fed32a9285a434.tar.gz
external_llvm-f056e023189e48d0337c7198d9fed32a9285a434.tar.bz2
back this out for now. Growing Function is not good.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--lib/CodeGen/SjLjEHPrepare.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp
index 95b94e6..9558933 100644
--- a/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/lib/CodeGen/SjLjEHPrepare.cpp
@@ -474,10 +474,8 @@ bool SjLjEHPass::insertSjLjEHSupport(Function &F) {
// At this point, we are all set up, update the invoke instructions
// to mark their call_site values, and fill in the dispatch switch
// accordingly.
- for (unsigned i = 0, e = Invokes.size(); i != e; ++i) {
- F.setCallSiteNumber(Invokes[i], i+1);
+ for (unsigned i = 0, e = Invokes.size(); i != e; ++i)
markInvokeCallSite(Invokes[i], i+1, CallSite, DispatchSwitch);
- }
// The front end has likely added calls to _Unwind_Resume. We need
// to find those calls and mark the call_site as -1 immediately prior.