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/CodeGenCXX/threadsafe-statics.cpp | |
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/CodeGenCXX/threadsafe-statics.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/threadsafe-statics.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/test/CodeGenCXX/threadsafe-statics.cpp b/clang/test/CodeGenCXX/threadsafe-statics.cpp index a28d0fccbd2..9aecc2d0db6 100644 --- a/clang/test/CodeGenCXX/threadsafe-statics.cpp +++ b/clang/test/CodeGenCXX/threadsafe-statics.cpp @@ -6,7 +6,7 @@ int f(); // WITH-TSS: @_ZZ1gvE1a = internal global i32 0, align 4 // WITH-TSS: @_ZGVZ1gvE1a = internal global i64 0 -// WITH-TSS: define void @_Z1gv() #0 +// WITH-TSS: define void @_Z1gv() [[NUW:#[0-9]+]] // WITH-TSS: call i32 @__cxa_guard_acquire // WITH-TSS: call void @__cxa_guard_release // WITH-TSS: ret void @@ -17,14 +17,11 @@ void g() { // NO-TSS: @_ZZ1gvE1a = internal global i32 0, align 4 // NO-TSS: @_ZGVZ1gvE1a = internal global i8 0 -// NO-TSS: define void @_Z1gv() #0 +// NO-TSS: define void @_Z1gv() [[NUW:#[0-9]+]] // NO-TSS-NOT: call i32 @__cxa_guard_acquire // NO-TSS-NOT: call void @__cxa_guard_release // NO-TSS: ret void -// WITH-TSS: attributes #0 = { nounwind "target-features"={{.*}} } -// WITH-TSS: attributes #1 = { nounwind } -// WITH-TSS: attributes #2 = { "target-features"={{.*}} } +// WITH-TSS: attributes [[NUW]] = { nounwind{{.*}} } -// NO-TSS: attributes #0 = { nounwind "target-features"={{.*}} } -// NO-TSS: attributes #1 = { "target-features"={{.*}} } +// NO-TSS: attributes [[NUW]] = { nounwind{{.*}} } |