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/CodeGen/pragma-weak.c | |
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/CodeGen/pragma-weak.c')
-rw-r--r-- | clang/test/CodeGen/pragma-weak.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/test/CodeGen/pragma-weak.c b/clang/test/CodeGen/pragma-weak.c index 4319bf2c624..d4b1b9f93f6 100644 --- a/clang/test/CodeGen/pragma-weak.c +++ b/clang/test/CodeGen/pragma-weak.c @@ -136,7 +136,7 @@ void __both3(void) {} void __a1(void) __attribute((noinline)); #pragma weak a1 = __a1 void __a1(void) {} -// CHECK: define void @__a1() #1 +// CHECK: define void @__a1() [[NI:#[0-9]+]] // attributes introduced BEFORE a combination of #pragma weak and alias() // hold... @@ -144,11 +144,11 @@ void __a3(void) __attribute((noinline)); #pragma weak a3 = __a3 void a3(void) __attribute((alias("__a3"))); void __a3(void) {} -// CHECK: define void @__a3() #1 +// CHECK: define void @__a3() [[NI]] #pragma weak xxx = __xxx __attribute((pure,noinline,const,fastcall)) void __xxx(void) { } -// CHECK: void @__xxx() #2 +// CHECK: void @__xxx() [[RN:#[0-9]+]] ///////////// PR10878: Make sure we can call a weak alias void SHA512Pad(void *context) {} @@ -180,7 +180,5 @@ void zzz(void){} int correct_linkage; -// CHECK: attributes #0 = { nounwind "target-features"={{.*}} } -// CHECK: attributes #1 = { noinline nounwind "target-features"={{.*}} } -// CHECK: attributes #2 = { noinline nounwind readnone "target-features"={{.*}} } -// CHECK: attributes #3 = { "target-features"={{.*}} } +// CHECK: attributes [[NI]] = { noinline nounwind{{.*}} } +// CHECK: attributes [[RN]] = { noinline nounwind readnone{{.*}} } |