diff options
Diffstat (limited to 'test/CodeGenObjC')
-rw-r--r-- | test/CodeGenObjC/arc.m | 14 | ||||
-rw-r--r-- | test/CodeGenObjC/gnu-exceptions.m | 5 | ||||
-rw-r--r-- | test/CodeGenObjC/nonlazy-msgSend.m | 5 | ||||
-rw-r--r-- | test/CodeGenObjC/objc-literal-debugger-test.m | 5 | ||||
-rw-r--r-- | test/CodeGenObjC/objc-literal-tests.m | 6 |
5 files changed, 13 insertions, 22 deletions
diff --git a/test/CodeGenObjC/arc.m b/test/CodeGenObjC/arc.m index 6ae352b6b0..c5141a1e59 100644 --- a/test/CodeGenObjC/arc.m +++ b/test/CodeGenObjC/arc.m @@ -9,7 +9,7 @@ // ARC-ALIEN: declare extern_weak void @objc_storeStrong(i8**, i8*) // ARC-ALIEN: declare extern_weak i8* @objc_retain(i8*) // ARC-ALIEN: declare extern_weak i8* @objc_autoreleaseReturnValue(i8*) -// ARC-ALIEN: declare i8* @objc_msgSend(i8*, i8*, ...) #1 +// ARC-ALIEN: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB:#[0-9]+]] // ARC-ALIEN: declare extern_weak void @objc_release(i8*) // ARC-ALIEN: declare extern_weak i8* @objc_retainAutoreleasedReturnValue(i8*) // ARC-ALIEN: declare extern_weak i8* @objc_initWeak(i8**, i8*) @@ -20,10 +20,10 @@ // ARC-ALIEN: declare extern_weak i8* @objc_retainAutorelease(i8*) // ARC-NATIVE: declare void @objc_storeStrong(i8**, i8*) -// ARC-NATIVE: declare i8* @objc_retain(i8*) #1 +// ARC-NATIVE: declare i8* @objc_retain(i8*) [[NLB:#[0-9]+]] // ARC-NATIVE: declare i8* @objc_autoreleaseReturnValue(i8*) -// ARC-NATIVE: declare i8* @objc_msgSend(i8*, i8*, ...) #1 -// ARC-NATIVE: declare void @objc_release(i8*) #1 +// ARC-NATIVE: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB]] +// ARC-NATIVE: declare void @objc_release(i8*) [[NLB]] // ARC-NATIVE: declare i8* @objc_retainAutoreleasedReturnValue(i8*) // ARC-NATIVE: declare i8* @objc_initWeak(i8**, i8*) // ARC-NATIVE: declare i8* @objc_storeWeak(i8**, i8*) @@ -1484,7 +1484,5 @@ void test70(id i) { }; } -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { nonlazybind } -// CHECK: attributes #2 = { "target-features"={{.*}} } -// CHECK: attributes [[NUW]] = { nounwind } +// ARC-ALIEN: attributes [[NLB]] = { nonlazybind } +// ARC-NATIVE: attributes [[NLB]] = { nonlazybind } diff --git a/test/CodeGenObjC/gnu-exceptions.m b/test/CodeGenObjC/gnu-exceptions.m index 3df92ef1db..4a046e2134 100644 --- a/test/CodeGenObjC/gnu-exceptions.m +++ b/test/CodeGenObjC/gnu-exceptions.m @@ -6,7 +6,7 @@ void log(int i); @class C; -// CHECK: define void @test0() #0 { +// CHECK: define void @test0() { void test0() { @try { // CHECK: invoke void @opaque() @@ -30,6 +30,3 @@ void test0() { log(1); } - -// CHECK: attributes #0 = { "target-features"={{.*}} } -// CHECK: attributes #1 = { nounwind readnone } diff --git a/test/CodeGenObjC/nonlazy-msgSend.m b/test/CodeGenObjC/nonlazy-msgSend.m index 157292edca..0ae9f11f9c 100644 --- a/test/CodeGenObjC/nonlazy-msgSend.m +++ b/test/CodeGenObjC/nonlazy-msgSend.m @@ -1,9 +1,8 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | FileCheck %s -// CHECK: declare i8* @objc_msgSend(i8*, i8*, ...) #1 +// CHECK: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB:#[0-9]+]] void f0(id x) { [x foo]; } -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { nonlazybind } +// CHECK: attributes [[NLB]] = { nonlazybind } diff --git a/test/CodeGenObjC/objc-literal-debugger-test.m b/test/CodeGenObjC/objc-literal-debugger-test.m index 437c99bef0..d4043aa53c 100644 --- a/test/CodeGenObjC/objc-literal-debugger-test.m +++ b/test/CodeGenObjC/objc-literal-debugger-test.m @@ -50,7 +50,6 @@ int main() { #endif } -// CHECK: declare i8* @objc_msgSend(i8*, i8*, ...) #1 +// CHECK: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB:#[0-9]+]] -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { nonlazybind } +// CHECK: attributes [[NLB]] = { nonlazybind } diff --git a/test/CodeGenObjC/objc-literal-tests.m b/test/CodeGenObjC/objc-literal-tests.m index d991b960cd..c53ee644f0 100644 --- a/test/CodeGenObjC/objc-literal-tests.m +++ b/test/CodeGenObjC/objc-literal-tests.m @@ -53,7 +53,7 @@ typedef signed char BOOL; id NSUserName(); -// CHECK: define i32 @main() #0 +// CHECK: define i32 @main() [[NUW:#[0-9]+]] int main() { // CHECK: call{{.*}}@objc_msgSend{{.*}}i8 signext 97 NSNumber *aNumber = @'a'; @@ -94,6 +94,4 @@ void baz(void) { bar(^(void) { return YES; }); } -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { nonlazybind } -// CHECK: attributes #2 = { "target-features"={{.*}} } +// CHECK: attributes [[NUW]] = { nounwind{{.*}} } |