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 | d620e09c13b1ca32434ce440abf5bb0f3d0979c5 (patch) | |
tree | 7741519fb7d204ac5f8303922943f752d4903cab /test/CodeGenObjCXX/lambda-expressions.mm | |
parent | 0a8dead5303bd0cabebf07ab4e8d4f838787e8f1 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX/lambda-expressions.mm')
-rw-r--r-- | test/CodeGenObjCXX/lambda-expressions.mm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/test/CodeGenObjCXX/lambda-expressions.mm b/test/CodeGenObjCXX/lambda-expressions.mm index ddc24a3bd2..7c1e2e4f57 100644 --- a/test/CodeGenObjCXX/lambda-expressions.mm +++ b/test/CodeGenObjCXX/lambda-expressions.mm @@ -25,24 +25,19 @@ typedef int (^fp)(); fp global; void f2() { global = []{ return 3; }; } -// MRC: define void @_Z2f2v() #1 { +// MRC: define void @_Z2f2v() [[NUW:#[0-9]+]] { // MRC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*), // MRC-NOT: call // MRC: ret void // ("global" contains a dangling pointer after this function runs.) -// ARC: define void @_Z2f2v() #1 { +// ARC: define void @_Z2f2v() [[NUW:#[0-9]+]] { // ARC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*), // ARC: call i8* @objc_retainBlock // ARC: call void @objc_release // ARC: define internal i32 @___Z2f2v_block_invoke // ARC: call i32 @"_ZZ2f2vENK3$_1clEv -// ARC: attributes #0 = { "target-features"={{.*}} } -// ARC: attributes #1 = { nounwind "target-features"={{.*}} } -// ARC: attributes #2 = { inlinehint nounwind "target-features"={{.*}} } +// ARC: attributes [[NUW]] = { nounwind{{.*}} } -// MRC: attributes #0 = { "target-features"={{.*}} } -// MRC: attributes #1 = { nounwind "target-features"={{.*}} } -// MRC: attributes #2 = { inlinehint nounwind "target-features"={{.*}} } -// MRC: attributes #3 = { nonlazybind } +// MRC: attributes [[NUW]] = { nounwind{{.*}} } |