<div>Why are blocks excluded when printing out the AST? Is it a bug?</div><div><br></div><div><div>$ cat foo.c </div><div>#include<stdio.h></div><div>int main(int argc, char *argv[])</div><div>{</div><div>        void (^hello)() = ^ { printf("hello world\n"); };</div>
<div>        hello();</div><div>        return 0;</div><div>}</div></div><div><br></div><div>$ clang -cc1 -fblocks hello.c -ast-print</div><div><div>int main(int argc, char *argv[]) {</div><div>    void (^hello)() = ^;</div>
<div>    hello();</div><div>    return 0;</div><div>}</div></div><div><br></div><div>In any case, is there a quick way to dump the blocks-specific generated code (__block_invoke_1, __block_literal_1 etc.)?</div><div>Finally, is there a way to reach a block's imported variables without modifying the compiler?</div>
<div><br></div><div>Thanks,</div><div>Abhishek </div>