diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-25 07:15:16 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-25 07:15:16 +0000 |
commit | 87869db5f5394fc35f38de1ebbe85f21d5549d99 (patch) | |
tree | 6a00b449613d15ba851b41834050d2c7526224e4 /clang/test/CodeGenObjC | |
parent | c73f9c5d892b9c31ccbc838ad9a8a5f372f1d7be (diff) | |
download | bcm5719-llvm-87869db5f5394fc35f38de1ebbe85f21d5549d99.tar.gz bcm5719-llvm-87869db5f5394fc35f38de1ebbe85f21d5549d99.zip |
Add more attributes from the command line to functions.
This is an ongoing process. Any command line option which a back-end cares about
should be added here.
llvm-svn: 176009
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 | 5 | ||||
-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, 14 insertions, 20 deletions
diff --git a/clang/test/CodeGenObjC/arc.m b/clang/test/CodeGenObjC/arc.m index 6ae352b6b0d..48f012a42be 100644 --- a/clang/test/CodeGenObjC/arc.m +++ b/clang/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,6 @@ void test70(id i) { }; } -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { nonlazybind } -// CHECK: attributes #2 = { "target-features"={{.*}} } +// ARC-ALIEN: attributes [[NLB]] = { nonlazybind } +// ARC-NATIVE: attributes [[NLB]] = { nonlazybind } // CHECK: attributes [[NUW]] = { nounwind } diff --git a/clang/test/CodeGenObjC/gnu-exceptions.m b/clang/test/CodeGenObjC/gnu-exceptions.m index 3df92ef1dbb..7aa9709a875 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() #0 { +// CHECK: define void @test0() [[TF:#[0-9]+]] { void test0() { @try { // CHECK: invoke void @opaque() @@ -31,5 +31,4 @@ void test0() { log(1); } -// CHECK: attributes #0 = { "target-features"={{.*}} } -// CHECK: attributes #1 = { nounwind readnone } +// CHECK: attributes [[TF]] = { "{{.*}} } diff --git a/clang/test/CodeGenObjC/nonlazy-msgSend.m b/clang/test/CodeGenObjC/nonlazy-msgSend.m index 157292edcaa..0ae9f11f9c0 100644 --- a/clang/test/CodeGenObjC/nonlazy-msgSend.m +++ b/clang/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/clang/test/CodeGenObjC/objc-literal-debugger-test.m b/clang/test/CodeGenObjC/objc-literal-debugger-test.m index 437c99bef05..d4043aa53c1 100644 --- a/clang/test/CodeGenObjC/objc-literal-debugger-test.m +++ b/clang/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/clang/test/CodeGenObjC/objc-literal-tests.m b/clang/test/CodeGenObjC/objc-literal-tests.m index d991b960cdb..c53ee644f05 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() #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{{.*}} } |