Fix typeos and add descriptions
authorChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 12:16:58 +0000 (12:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Aug 2003 12:16:58 +0000 (12:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8108 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/Inline/invoke_test-1.ll
test/Transforms/Inline/invoke_test-2.ll
test/Transforms/Inline/invoke_test-3.ll

index c8d844c885453c07442ce415d241093d8a1cfaa9..2aa47f770cd3775e37bec61a8e9706a0180cfa6e 100644 (file)
@@ -1,4 +1,4 @@
-; Test that we can invoke a simple function, turning the calls in it into invoke
+; Test that we can inline a simple function, turning the calls in it into invoke
 ; instructions
 
 ; RUN: as < %s | opt -inline | dis | not grep 'call[^e]'
index d673e85d7dd37a0f687f6aa7a9439a10c2f1a6e8..95c8e66c2bb5851148f2833a1218208fe5dd855e 100644 (file)
@@ -16,7 +16,7 @@ exc:
        ret int 1
 }
 
-; caller returns true if might_throw throws an exception...
+; caller returns true if might_throw throws an exception... callee cannot throw.
 int %caller() {
        %X = invoke int %callee() to label %cont 
                except label %UnreachableExceptionHandler
index bc112042b2eba5dcb69c31af64c1493c00e33791..7ed3ed31dee0d7a9acf9108a5289a7ed628763a3 100644 (file)
@@ -14,10 +14,11 @@ cont:
        ret int 0
 exc:   ; This just rethrows the exception!
        call void %llvm.exc.rethrow()
-       ret int 0
+       ret int 123  ; DEAD!
 }
 
-; caller returns true if might_throw throws an exception...
+; caller returns true if might_throw throws an exception... which gets 
+; propagated by callee.
 int %caller() {
        %X = invoke int %callee() to label %cont 
                except label %Handler
@@ -25,5 +26,5 @@ cont:
        ret int %X
 Handler:
        ; This consumes an exception thrown by might_throw
-       ret int -1
+       ret int 1
 }