diff options
| author | Manman Ren <manman.ren@gmail.com> | 2013-11-23 01:16:29 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2013-11-23 01:16:29 +0000 |
| commit | d664bd7725338b0e9a810617947f4b6ebd069b32 (patch) | |
| tree | ee58f06e07a644c90f32e03ab605e2272c90a615 /llvm/test/Transforms/ObjCARC | |
| parent | 00cba4f6dda891c5f3e7fd904a6f6d992e9e0702 (diff) | |
| download | bcm5719-llvm-d664bd7725338b0e9a810617947f4b6ebd069b32.tar.gz bcm5719-llvm-d664bd7725338b0e9a810617947f4b6ebd069b32.zip | |
Debug Info: update testing cases to specify the debug info version number.
We are going to drop debug info without a version number or with a different
version number, to make sure we don't crash when we see bitcode files with
different debug info metadata format.
Make tests more robust by removing hard-coded metadata numbers in CHECK lines.
llvm-svn: 195535
Diffstat (limited to 'llvm/test/Transforms/ObjCARC')
| -rw-r--r-- | llvm/test/Transforms/ObjCARC/basic.ll | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/test/Transforms/ObjCARC/basic.ll b/llvm/test/Transforms/ObjCARC/basic.ll index aa221443274..885935c5153 100644 --- a/llvm/test/Transforms/ObjCARC/basic.ll +++ b/llvm/test/Transforms/ObjCARC/basic.ll @@ -182,7 +182,7 @@ if.end5: ; preds = %if.then3, %if.end ; CHECK: tail call i8* @objc_retain(i8* %x) [[NUW:#[0-9]+]] ; CHECK-NOT: @objc_ ; CHECK: if.end5: -; CHECK: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release !0 +; CHECK: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release ![[RELEASE:[0-9]+]] ; CHECK-NOT: @objc_ ; CHECK: } define void @test1b_imprecise(i8* %x, i1 %p, i1 %q) { @@ -2202,7 +2202,7 @@ define void @test53(void ()** %zz, i8** %pp) { ; CHECK-LABEL: define void @test54( ; CHECK: call i8* @returner() -; CHECK-NEXT: call void @objc_release(i8* %t) [[NUW]], !clang.imprecise_release !0 +; CHECK-NEXT: call void @objc_release(i8* %t) [[NUW]], !clang.imprecise_release ![[RELEASE]] ; CHECK-NEXT: ret void ; CHECK: } define void @test54() { @@ -2236,7 +2236,7 @@ entry: ; CHECK-NEXT: %0 = tail call i8* @objc_retain(i8* %x) [[NUW]] ; CHECK-NEXT: tail call void @use_pointer(i8* %x) ; CHECK-NEXT: tail call void @use_pointer(i8* %x) -; CHECK-NEXT: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release !0 +; CHECK-NEXT: tail call void @objc_release(i8* %x) [[NUW]], !clang.imprecise_release ![[RELEASE]] ; CHECK-NEXT: br label %if.end ; CHECK-NOT: @objc ; CHECK: } @@ -3009,7 +3009,11 @@ define void @test67(i8* %x) { ret void } +!llvm.module.flags = !{!1} + !0 = metadata !{} +!1 = metadata !{i32 1, metadata !"Debug Info Version", i32 1} ; CHECK: attributes #0 = { nounwind readnone } ; CHECK: attributes [[NUW]] = { nounwind } +; CHECK: ![[RELEASE]] = metadata !{} |

