diff options
author | Devang Patel <dpatel@apple.com> | 2009-03-31 17:36:12 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-03-31 17:36:12 +0000 |
commit | 28c531cdbb403c59f492d3361ec9e8581f2a7ab2 (patch) | |
tree | 238fde270115339e2735dc9fe3fc8941d483f5b2 /test/Other | |
parent | be46c79501eda9b9cd7bbb02d7e3e88f0c599c50 (diff) |
Update call graph after inlining invoke.
Patch by Jay Foad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r-- | test/Other/2009-03-31-CallGraph.ll | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Other/2009-03-31-CallGraph.ll b/test/Other/2009-03-31-CallGraph.ll new file mode 100644 index 0000000000..43578be2d9 --- /dev/null +++ b/test/Other/2009-03-31-CallGraph.ll @@ -0,0 +1,31 @@ +; RUN: llvm-as < %s | opt -inline -prune-eh -disable-output +define void @f2() { + invoke void @f6() + to label %ok1 unwind label %lpad1 + +ok1: + ret void + +lpad1: + invoke void @f4() + to label %ok2 unwind label %lpad2 + +ok2: + call void @f8() + unreachable + +lpad2: + unreachable +} + +declare void @f3() + +define void @f4() { + call void @f3() + ret void +} + +declare void @f6() nounwind + +declare void @f8() + |