summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/unwind-attr.c
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-28 22:49:57 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-28 22:49:57 +0000
commit706469b4530bfeed161e55f006145354b97eada2 (patch)
tree2fe6a3294f123c4e1da43b125a1aa1c5b271bf50 /clang/test/CodeGen/unwind-attr.c
parentd838bba59b69265933e71cda8532cd5bfc2bf24a (diff)
downloadbcm5719-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/unwind-attr.c')
-rw-r--r--clang/test/CodeGen/unwind-attr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/CodeGen/unwind-attr.c b/clang/test/CodeGen/unwind-attr.c
index 1a7d3cdd1c6..e505a6e9e27 100644
--- a/clang/test/CodeGen/unwind-attr.c
+++ b/clang/test/CodeGen/unwind-attr.c
@@ -3,7 +3,7 @@
int opaque();
-// CHECK: define [[INT:i.*]] @test0() {
+// CHECK: define [[INT:i.*]] @test0() [[TF:#[0-9]+]] {
// CHECK-NOEXC: define [[INT:i.*]] @test0() [[NUW:#[0-9]+]] {
int test0(void) {
return opaque();
@@ -17,12 +17,13 @@ int test1(void) {
}
// <rdar://problem/8283071>: not for weak functions
-// CHECK: define weak [[INT:i.*]] @test2() {
+// CHECK: define weak [[INT:i.*]] @test2() [[TF]] {
// CHECK-NOEXC: define weak [[INT:i.*]] @test2() [[NUW]] {
__attribute__((weak)) int test2(void) {
return 0;
}
+// CHECK: attributes [[TF]] = { "{{.*}} }
// CHECK: attributes [[NUW]] = { nounwind{{.*}} }
// CHECK-NOEXC: attributes [[NUW]] = { nounwind{{.*}} }
OpenPOWER on IntegriCloud