<div dir="ltr">Hi,<br><br>I am not making this application part of LLVM library although I do link the libLLVMipa library ( actually I am using llvm-config --libs all option in the Makefile which links all the libraries). <br>
<br>Is it necessary to make it part of LLVM library?<br><br>Thanks for you responses.<br><br><br>--Kapil<br><br><div class="gmail_quote">On Fri, Aug 22, 2008 at 3:40 PM, Bill Wendling <span dir="ltr"><<a href="mailto:isanbard@gmail.com">isanbard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Aug 21, 2008, at 2:20 PM, kapil anand wrote:<br>
<br>
> Hi,<br>
><br>
> I have made my optimization as an extension of ModulePass as<br>
> suggested in last mail. I included "addRequired<CallGraph>" in<br>
> getAnalysisUsage function.<br>
> The application compiles fine but while linking,  I get following<br>
> errors:<br>
> "undefined reference to llvm::CallGraphLinkVar"<br>
> "undefined reference to llvm::CallGraph::ID<br>
><br>
> The above error is at point where I refer to individual instruction.<br>
> I followed the conventions used in GlobalModRefPass, which is also<br>
> an extension of ModulePass. Is there any other convention which<br>
> needs to be followed?<br>
><br>
</div>I would think that that is enough. Where are you adding this module?<br>
Is it part of the libLLVMipa.a library? Or is it another library? Make<br>
sure that when you link your application, you're analysis is either<br>
part of libLLVMipa.a or has that library on the link line.<br>
<div><div></div><div class="Wj3C7c"><br>
-bw<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>