[cfe-dev] Invoking compilation after plugin execution

Nico Weber thakis at google.com
Fri Feb 18 08:15:28 PST 2011


Hi,

-plugin replaces the codegen phase. You could use -add-plugin, which runs
the plugin in addition to codegen—but after codegen (because the ast is
supposed to be immutable once constructed).

What are you trying to do?
Nico
On Feb 18, 2011 3:56 PM, "Dimitrij Kotrev" <dimitrij.kotrev at googlemail.com>
wrote:
> Hello,
> i've written a plugin for clang, which i want to use in my compilation
> process. What
> i want to achieve is that my plugin executed first and then the
> default compilation
> starts. So far i've done the following:
>
> 1. I dumped the arguments for the default compilation with the '-###'
argument.
> 2. Added my plugin invocation argument to these arguments. (-load
> libpl.so -plugin pl)
>
> After executing clang with the new argument string, i can see that
> only my plugin is
> executed and nothing else. So how do i achieve my goal?
>
> Thanks,
> Dimi
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110218/f4e46146/attachment.html>


More information about the cfe-dev mailing list