diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-28 22:49:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-28 22:49:57 +0000 |
commit | 706469b4530bfeed161e55f006145354b97eada2 (patch) | |
tree | 2fe6a3294f123c4e1da43b125a1aa1c5b271bf50 /clang/test/CodeGen/function-attributes.c | |
parent | d838bba59b69265933e71cda8532cd5bfc2bf24a (diff) | |
download | bcm5719-llvm-706469b4530bfeed161e55f006145354b97eada2.tar.gz bcm5719-llvm-706469b4530bfeed161e55f006145354b97eada2.zip |
Add more of the command line options as attribute flags.
These can be easily queried by the back-end.
llvm-svn: 176304
Diffstat (limited to 'clang/test/CodeGen/function-attributes.c')
-rw-r--r-- | clang/test/CodeGen/function-attributes.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/test/CodeGen/function-attributes.c b/clang/test/CodeGen/function-attributes.c index 8ad00fa80d6..25ca9163a19 100644 --- a/clang/test/CodeGen/function-attributes.c +++ b/clang/test/CodeGen/function-attributes.c @@ -43,7 +43,7 @@ void f9b(void) { f9a(); } // FIXME: We should be setting nounwind on calls. // CHECK: call i32 @f10_t() -// CHECK: [[NUW]] +// CHECK: [[NUW_RN:#[0-9]+]] // CHECK: { int __attribute__((const)) f10_t(void); int f10(void) { return f10_t(); } @@ -119,6 +119,8 @@ void f19(void) { // CHECK: attributes [[NUW]] = { nounwind optsize readnone{{.*}} } // CHECK: attributes [[AI]] = { alwaysinline nounwind optsize readnone{{.*}} } -// CHECK: attributes [[NR]] = { noreturn nounwind optsize } // CHECK: attributes [[ALIGN]] = { nounwind optsize readnone alignstack=16{{.*}} } -// CHECK: attributes [[RT]] = { nounwind optsize returns_twice } +// CHECK: attributes [[RT]] = { nounwind optsize returns_twice{{.*}} } +// CHECK: attributes [[NR]] = { noreturn nounwind optsize } +// CHECK: attributes [[NUW_RN]] = { nounwind optsize readnone } +// CHECK: attributes [[RT_CALL]] = { nounwind optsize returns_twice } |