diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-05-14 16:42:16 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-14 16:42:16 +0000 |
| commit | 0a2171ccd50ad5fb7131e9827eaae03d9937332c (patch) | |
| tree | b66395b21eebfc4e1c9e7d64ac6f6909d5d4b9a3 /clang/test | |
| parent | d9034f0b89701f6de6704bd7e889638f81cba3b4 (diff) | |
| download | bcm5719-llvm-0a2171ccd50ad5fb7131e9827eaae03d9937332c.tar.gz bcm5719-llvm-0a2171ccd50ad5fb7131e9827eaae03d9937332c.zip | |
Skip the asm prefix when storing the name in block info.
- Otherwise we emit internal names with embedded '\01' characters,
which confuses some tools.
- Ideally all the code which wants to get a "display name" for the
given function should follow one code path, but this should be a
monotonic improvement for now.
llvm-svn: 71774
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGenObjC/blocks.m | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjC/blocks.m b/clang/test/CodeGenObjC/blocks.m index da115612956..18c455ad9eb 100644 --- a/clang/test/CodeGenObjC/blocks.m +++ b/clang/test/CodeGenObjC/blocks.m @@ -1,4 +1,4 @@ -// RUN: clang-cc -emit-llvm -fblocks -S -o - %s +// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -fblocks -o %t %s && // rdar://6676764 struct S { @@ -19,9 +19,18 @@ void foo(T *P) { -(void) im0; @end +// RUN: grep 'define internal i32 @"__-\[A im0\]_block_invoke_"' %t && +@implementation A +-(void) im0 { + (void) ^{ return 1; }(); +} +@end + @interface B : A @end @implementation B -(void) im1 { ^(void) { [super im0]; }(); } @end + +// RUN: true |

