summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/attr.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2013-02-25 19:51:03 +0000
committerAnna Zaks <ganna@apple.com>2013-02-25 19:51:03 +0000
commit0f424b029b42f5a846b8e4130c883044fd1043c9 (patch)
treec41d6f5ef2998ff11a4274f9b102867b18e6662d /clang/test/CodeGenCXX/attr.cpp
parent2d773b813895d69fea04ce310ac8f0e9a501dfae (diff)
downloadbcm5719-llvm-0f424b029b42f5a846b8e4130c883044fd1043c9.tar.gz
bcm5719-llvm-0f424b029b42f5a846b8e4130c883044fd1043c9.zip
Revert "Add more attributes from the command line to functions."
This reverts commit 176009. The commit is a likely cause of several buildbot failures. llvm-svn: 176044
Diffstat (limited to 'clang/test/CodeGenCXX/attr.cpp')
-rw-r--r--clang/test/CodeGenCXX/attr.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/clang/test/CodeGenCXX/attr.cpp b/clang/test/CodeGenCXX/attr.cpp
index 4748cda8cc4..238019ceb63 100644
--- a/clang/test/CodeGenCXX/attr.cpp
+++ b/clang/test/CodeGenCXX/attr.cpp
@@ -2,7 +2,7 @@
// CHECK: @test2 = alias i32 ()* @_Z5test1v
-// CHECK: define i32 @_Z3foov() [[NUW:#[0-9]+]] align 1024
+// CHECK: define i32 @_Z3foov() #0 align 1024
int foo() __attribute__((aligned(1024)));
int foo() { }
@@ -13,16 +13,16 @@ class C {
void bar4() __attribute__((aligned(1024)));
} c;
-// CHECK: define void @_ZN1C4bar1Ev(%class.C* %this) unnamed_addr [[NUW]] align 2
+// CHECK: define void @_ZN1C4bar1Ev(%class.C* %this) unnamed_addr #0 align 2
void C::bar1() { }
-// CHECK: define void @_ZN1C4bar2Ev(%class.C* %this) unnamed_addr [[NUW]] align 2
+// CHECK: define void @_ZN1C4bar2Ev(%class.C* %this) unnamed_addr #0 align 2
void C::bar2() { }
-// CHECK: define void @_ZN1C4bar3Ev(%class.C* %this) unnamed_addr [[NUW]] align 1024
+// CHECK: define void @_ZN1C4bar3Ev(%class.C* %this) unnamed_addr #0 align 1024
void C::bar3() { }
-// CHECK: define void @_ZN1C4bar4Ev(%class.C* %this) [[NUW]] align 1024
+// CHECK: define void @_ZN1C4bar4Ev(%class.C* %this) #0 align 1024
void C::bar4() { }
// PR6635
@@ -31,4 +31,7 @@ int test1() { return 10; }
// CHECK at top of file
extern "C" int test2() __attribute__((alias("_Z5test1v")));
-// CHECK: attributes [[NUW]] = { nounwind{{.*}} }
+// CHECK: attributes #0 = { nounwind "target-features"={{.*}} }
+// CHECK: attributes #1 = { noreturn nounwind }
+// CHECK: attributes #2 = { nounwind }
+// CHECK: attributes #3 = { inlinehint nounwind "target-features"={{.*}} }
OpenPOWER on IntegriCloud