Update to new EH scheme.
authorBill Wendling <isanbard@gmail.com>
Thu, 1 Sep 2011 01:28:25 +0000 (01:28 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 1 Sep 2011 01:28:25 +0000 (01:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138933 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll
test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll
test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll
test/Transforms/InstCombine/call.ll

index cfe5df6d30a367bb7c8350d43e2b566c00747c40..56493e2e5e320408a2f238f5eadbbb651ed94f54 100644 (file)
@@ -10,6 +10,9 @@ invoke_cont:            ; preds = %0
         ret float* %tmp.11
 
 X:              ; preds = %0
+        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                 cleanup
         ret float* null
 }
 
+declare i32 @__gxx_personality_v0(...)
index bec0b9e0c5733d1396d48ca43832558f46dc5a1d..6df30c7e7fd146251de1730e5de72be909c09eb6 100644 (file)
@@ -23,6 +23,9 @@ cont:           ; preds = %call, %entry
         ret i32 %V
 
 N:              ; preds = %call
+        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                 cleanup
         ret i32 0
 }
 
+declare i32 @__gxx_personality_v0(...)
index d56a1a0b786ae3dbeec565beb38bcc4675c46671..f6eb24843fb88128aeca6ba7cd6939fc2e511a02 100644 (file)
@@ -29,5 +29,9 @@ invcont37:            ; preds = %invcont31
        ret void
 
 lpad:          ; preds = %invcont31, %invcont, %entry
+        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                 cleanup
        unreachable
 }
+
+declare i32 @__gxx_personality_v0(...)
index d0848739cdcc22f1cc9e9f27b17624d67b7fe18e..983dd262839ef891bf71a184340c8f2d633d2553 100644 (file)
@@ -107,9 +107,13 @@ invoke.cont:                                      ; preds = %entry
   unreachable
 
 try.handler:                                      ; preds = %entry
+  %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+            cleanup
   ret i8* null
 }
 
+declare i32 @__gxx_personality_v0(...)
+
 ; Don't turn this into "unreachable": the callee and caller don't agree in
 ; calling conv, but the implementation of test8a may actually end up using the
 ; right calling conv.