[cfe-dev] manipulating @llvm.var.annotation in AST?

John McCall rjmccall at apple.com
Tue Sep 13 16:29:37 PDT 2011


On Sep 13, 2011, at 4:26 PM, Mark Brown wrote:
> Theres a direct way todo this? How can I avoid writing a AST file? When I run
> 
> clang -cc1 -load ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so -plugin print-fns test_file.c
> or
> clang -cc1 -load ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so -plugin print-fns test_file.c -S -emit-llvm 
> 
> I don't get any output, just my own printouts.

It might entail changing clang;  again, I am not an expert in the limitations of the current plugin hack.

John.



More information about the cfe-dev mailing list