Hello,<div><br></div><div>I am also having the same problem; of course, I am using the last version of this example, so my command line looks like:</div><div><br></div><div><div>$> clang -cc1 -load /home/xxx/llvm/Debug/lib/libPrintFunctionNames.so -plugin=help</div>
<div><br></div><div>I get the below error:</div><div><br></div><div>$> error: unknown argument: '-plugin=help'</div></div><div><br></div><div>I am following the README file, so I added the next lines to the tool/clang/Makefile:</div>
<div><br></div><div><div># No plugins, optimize startup time.</div><div>TOOL_NO_EXPORTS = 1</div><div><br></div><div>I make clean and make it again, and I'm still getting the same error. </div><div><br></div><div>Somebody know what could be the problem?</div>
<div><br></div><div>BTW, I also test TOOL_NO_EXPORTS = 0, and I used the commands suggested by Seo.</div><div><br></div><div>Thanks in advance,</div><div><br></div><div><br></div><div>Juan Carlos</div></div><div><br><br><div class="gmail_quote">
On Wed, Nov 25, 2009 at 1:01 AM, Seo Sanghyeon <span dir="ltr"><<a href="mailto:sanxiyn@gmail.com">sanxiyn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/11/23 Cristina Basescu <<a href="mailto:cristina.basescu@gmail.com">cristina.basescu@gmail.com</a>>:<br>
<div class="im">> Hello,<br>
><br>
> I'm a newbie here and I'm having some trouble with running the examples from<br>
> clang. I built libPrintFunctionNames.so , by doing make in<br>
> llvm/tools/clang/examples/PrintFunctionNames, but I don't know how to see it<br>
> at work. I've tried with<br>
><br>
> opt -load /usr/llvm/Debug/lib/libPrintFunctionNames.so -print-fns test.bc<br>
><br>
> just like one would do for a llvm pass, but it doesn't work:<br>
<br>
</div>Well, libPrintFunctionNames.so is not an opt plugin, so that doesn't<br>
work. It is a<br>
clang-cc plugin. So:<br>
<br>
clang-cc -load libPrintFunctionNames.so -plugin=help should print<br>
<br>
clang-cc plugins:<br>
  print-fns - print function names<br>
<br>
and clang-cc -load libPrintFunctionNames.so -plugin=print-fns should execute it.<br>
<font color="#888888"><br>
--<br>
Seo Sanghyeon<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>
</font></blockquote></div><br><br clear="all"><br>-- <br>Juan Carlos<br>
</div>