<p>It's not possible currently.</p>
<p>Nico</p>
<div class="gmail_quote">On Oct 19, 2011 11:57 AM, "Guillem Marpons" <<a href="mailto:gmarpons@babel.ls.fi.upm.es">gmarpons@babel.ls.fi.upm.es</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I want to pass some AST information from Clang to LLVM and extensible<br>
metadata (<a href="http://blog.llvm.org/2010/04/extensible-metadata-in-llvm-ir.html" target="_blank">http://blog.llvm.org/2010/04/extensible-metadata-in-llvm-ir.html</a>)<br>
seems the right way to do that. Is it possible to add metadata to the<br>
generated IR from a "PrintFunctionNames"-like plugin? Some pointers or<br>
code examples?<br>
<br>
I'm aware that the plugin mechanism may improve in the near future<br>
(<a href="http://comments.gmane.org/gmane.comp.compilers.clang.devel/17707" target="_blank">http://comments.gmane.org/gmane.comp.compilers.clang.devel/17707</a>),<br>
I'd like to know if it's possible (and not very difficult) to do it<br>
with current infrastructure.<br>
<br>
Thanks,<br>
<br>
--<br>
Guillem Marpons<br>
Universidad Politécnica de Madrid - Babel Group<br>
<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" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>