diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-26 16:06:38 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-26 16:06:38 +0000 |
| commit | 6362803cfed99bc008b12b488d2c2a682df0cc2d (patch) | |
| tree | f476f5ae436635f48d58742bdf2d66f0311b3488 /clang/test/CXX/expr/expr.prim/expr.prim.lambda | |
| parent | 41960467142142e8b2eef91436b1345a372e5d14 (diff) | |
| download | bcm5719-llvm-6362803cfed99bc008b12b488d2c2a682df0cc2d.tar.gz bcm5719-llvm-6362803cfed99bc008b12b488d2c2a682df0cc2d.zip | |
block literal irgen: several improvements on naming block
literal helper functions. All helper functions (global
and locals) use block_invoke as their prefix. Local literal
helper names are prefixed by their enclosing mangled function
names. Blocks in non-local initializers (e.g. a global variable
or a C++11 field) are prefixed by their mangled variable name.
The descriminator number added to end of the name starts off
with blank (for first block) and _<N> (for the N+2-th block).
llvm-svn: 159206
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda')
| -rw-r--r-- | clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm index 9adecd0ee35..9f986710693 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm @@ -3,7 +3,7 @@ namespace PR12746 { // CHECK: define zeroext i1 @_ZN7PR127462f1EPi bool f1(int *x) { - // CHECK: store i8* bitcast (i1 (i8*)* @__f1_block_invoke_0 to i8*) + // CHECK: store i8* bitcast (i1 (i8*)* @___ZN7PR127462f1EPi_block_invoke to i8*) bool (^outer)() = ^ { auto inner = [&]() -> bool { return x == 0; @@ -13,8 +13,8 @@ namespace PR12746 { return outer(); } - // CHECK: define internal zeroext i1 @__f1_block_invoke_0 - // CHECK: call zeroext i1 @"_ZNK7PR127462f119__f1_block_invoke_03$_0clEv" + // CHECK: define internal zeroext i1 @___ZN7PR127462f1EPi_block_invoke + // CHECK: call zeroext i1 @"_ZNK7PR127462f132___ZN7PR127462f1EPi_block_invoke3$_0clEv" bool f2(int *x) { auto outer = [&]() -> bool { |

