[cfe-dev] manipulating @llvm.var.annotation in AST?
John McCall
rjmccall at apple.com
Thu Sep 8 12:15:30 PDT 2011
On Sep 8, 2011, at 12:07 PM, Mark Brown wrote:
> Now that they are added, how is this saved for later use?
>
> The PrintFunctionNames example is ran by
> clang -cc1 -load ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so -plugin print-fns input_file.c
>
> But how does this get stored/saved for the Pass phase? How do the new contents of llvm.var.annotation get stored/saved? "-emit-llvm -S" does not seem to help
Probably IR generation is running before you make your changes to the AST. I don't know the plugin system well enough to know if/how this is fixable.
John.
More information about the cfe-dev
mailing list