diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-04-22 19:37:32 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-04-22 19:37:32 +0000 |
commit | 1d980795e221c518afa53b2ca20ae778db33a1e0 (patch) | |
tree | 70e2d7110099e9a6a57cad107795c645564ad8ee /test/CodeGenCXX/global-dtor-no-atexit.cpp | |
parent | bfe1020980a88a6c8292de0f0669345042a93aa6 (diff) |
Set normal LLVM function attributes on global initializer functions
Otherwise -fno-omit-frame-pointer and other flags like it aren't
applied.
Basic idea taken from Gao's patch, thanks!
Differential Revision: http://reviews.llvm.org/D9203
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/global-dtor-no-atexit.cpp')
-rw-r--r-- | test/CodeGenCXX/global-dtor-no-atexit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/global-dtor-no-atexit.cpp b/test/CodeGenCXX/global-dtor-no-atexit.cpp index 9d35e848e3..9860412b1b 100644 --- a/test/CodeGenCXX/global-dtor-no-atexit.cpp +++ b/test/CodeGenCXX/global-dtor-no-atexit.cpp @@ -43,4 +43,4 @@ void func() { static A a1, a2; } -// CHECK: attributes [[NUW]] = { nounwind } +// CHECK: attributes [[NUW]] = { nounwind{{.*}} } |