<p>Hi,</p>
<p>-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).</p>
<p>What are you trying to do?<br>
Nico</p>
<div class="gmail_quote">On Feb 18, 2011 3:56 PM, "Dimitrij Kotrev" <<a href="mailto:dimitrij.kotrev@googlemail.com">dimitrij.kotrev@googlemail.com</a>> wrote:<br type="attribution">> Hello,<br>> i've written a plugin for clang, which i want to use in my compilation<br>
> process. What<br>> i want to achieve is that my plugin executed first and then the<br>> default compilation<br>> starts. So far i've done the following:<br>> <br>> 1. I dumped the arguments for the default compilation with the '-###' argument.<br>
> 2. Added my plugin invocation argument to these arguments. (-load<br>> libpl.so -plugin pl)<br>> <br>> After executing clang with the new argument string, i can see that<br>> only my plugin is<br>> executed and nothing else. So how do i achieve my goal?<br>
> <br>> Thanks,<br>> Dimi<br>> _______________________________________________<br>> cfe-dev mailing list<br>> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div>