diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-20 07:22:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-20 07:22:19 +0000 |
commit | c33fc4c00453099f4ac180313a67d6eb0f91ce0a (patch) | |
tree | 3522c3ac6a80d9d32c581884791649d862af2c76 /clang/test/CodeGenObjC | |
parent | 90bc19cd914c9870c1d1701b3a3e290b135c63b6 (diff) | |
download | bcm5719-llvm-c33fc4c00453099f4ac180313a67d6eb0f91ce0a.tar.gz bcm5719-llvm-c33fc4c00453099f4ac180313a67d6eb0f91ce0a.zip |
Modify the tests to use attribute group references instead of listing the
function attributes.
llvm-svn: 175606
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r-- | clang/test/CodeGenObjC/arc.m | 13 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/gnu-exceptions.m | 5 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/nonlazy-msgSend.m | 7 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/objc-literal-debugger-test.m | 5 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/objc-literal-tests.m | 6 |
5 files changed, 27 insertions, 9 deletions
diff --git a/clang/test/CodeGenObjC/arc.m b/clang/test/CodeGenObjC/arc.m index ad495ba20e2..599753ee9cb 100644 --- a/clang/test/CodeGenObjC/arc.m +++ b/clang/test/CodeGenObjC/arc.m @@ -9,7 +9,7 @@ // ARC-ALIEN: declare extern_weak i8* @objc_retain(i8*) // ARC-ALIEN: declare extern_weak void @objc_storeStrong(i8**, i8*) // ARC-ALIEN: declare extern_weak i8* @objc_autoreleaseReturnValue(i8*) -// ARC-ALIEN: declare i8* @objc_msgSend(i8*, i8*, ...) nonlazybind +// ARC-ALIEN: declare i8* @objc_msgSend(i8*, i8*, ...) #1 // 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*) @@ -19,11 +19,11 @@ // ARC-ALIEN: declare extern_weak i8* @objc_autorelease(i8*) // ARC-ALIEN: declare extern_weak i8* @objc_retainAutorelease(i8*) -// ARC-NATIVE: declare i8* @objc_retain(i8*) nonlazybind +// ARC-NATIVE: declare i8* @objc_retain(i8*) #1 // ARC-NATIVE: declare void @objc_storeStrong(i8**, i8*) // ARC-NATIVE: declare i8* @objc_autoreleaseReturnValue(i8*) -// ARC-NATIVE: declare i8* @objc_msgSend(i8*, i8*, ...) nonlazybind -// ARC-NATIVE: declare void @objc_release(i8*) nonlazybind +// ARC-NATIVE: declare i8* @objc_msgSend(i8*, i8*, ...) #1 +// ARC-NATIVE: declare void @objc_release(i8*) #1 // ARC-NATIVE: declare i8* @objc_retainAutoreleasedReturnValue(i8*) // ARC-NATIVE: declare i8* @objc_initWeak(i8**, i8*) // ARC-NATIVE: declare i8* @objc_storeWeak(i8**, i8*) @@ -1483,3 +1483,8 @@ void test70(id i) { [2] = i }; } + +// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } +// CHECK: attributes #1 = { nonlazybind } +// CHECK: attributes #2 = { "target-features"={{.*}} } +// CHECK: attributes #3 = { nounwind } diff --git a/clang/test/CodeGenObjC/gnu-exceptions.m b/clang/test/CodeGenObjC/gnu-exceptions.m index 604bcf2cc7a..3df92ef1dbb 100644 --- a/clang/test/CodeGenObjC/gnu-exceptions.m +++ b/clang/test/CodeGenObjC/gnu-exceptions.m @@ -6,7 +6,7 @@ void log(int i); @class C; -// CHECK: define void @test0() "target-features"={{.*}} { +// CHECK: define void @test0() #0 { void test0() { @try { // CHECK: invoke void @opaque() @@ -30,3 +30,6 @@ void test0() { log(1); } + +// CHECK: attributes #0 = { "target-features"={{.*}} } +// CHECK: attributes #1 = { nounwind readnone } diff --git a/clang/test/CodeGenObjC/nonlazy-msgSend.m b/clang/test/CodeGenObjC/nonlazy-msgSend.m index 7c349b29380..157292edcaa 100644 --- a/clang/test/CodeGenObjC/nonlazy-msgSend.m +++ b/clang/test/CodeGenObjC/nonlazy-msgSend.m @@ -1,6 +1,9 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s -// RUN: grep -F 'declare i8* @objc_msgSend(i8*, i8*, ...) nonlazybind' %t +// 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 void f0(id x) { [x foo]; } + +// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } +// CHECK: attributes #1 = { nonlazybind } diff --git a/clang/test/CodeGenObjC/objc-literal-debugger-test.m b/clang/test/CodeGenObjC/objc-literal-debugger-test.m index 5f69fd5ba88..437c99bef05 100644 --- a/clang/test/CodeGenObjC/objc-literal-debugger-test.m +++ b/clang/test/CodeGenObjC/objc-literal-debugger-test.m @@ -50,4 +50,7 @@ int main() { #endif } -// CHECK: declare i8* @objc_msgSend(i8*, i8*, ...) nonlazybind +// CHECK: declare i8* @objc_msgSend(i8*, i8*, ...) #1 + +// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } +// CHECK: attributes #1 = { nonlazybind } diff --git a/clang/test/CodeGenObjC/objc-literal-tests.m b/clang/test/CodeGenObjC/objc-literal-tests.m index c513d496110..d991b960cdb 100644 --- a/clang/test/CodeGenObjC/objc-literal-tests.m +++ b/clang/test/CodeGenObjC/objc-literal-tests.m @@ -53,7 +53,7 @@ typedef signed char BOOL; id NSUserName(); -// CHECK: define i32 @main() nounwind +// CHECK: define i32 @main() #0 int main() { // CHECK: call{{.*}}@objc_msgSend{{.*}}i8 signext 97 NSNumber *aNumber = @'a'; @@ -93,3 +93,7 @@ extern void bar(foo a); void baz(void) { bar(^(void) { return YES; }); } + +// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } +// CHECK: attributes #1 = { nonlazybind } +// CHECK: attributes #2 = { "target-features"={{.*}} } |