[LLVMdev] How call other lib functions in a pass?

Reid Spencer reid at x10sys.com
Fri Sep 3 19:10:31 PDT 2004


Xia,

That's not the best way to deal with it. The opt program can dynamically
load your pass, if its compiled to a shared object. See the manual page
for opt and in particular the -load option:

http://llvm.cs.uiuc.edu/docs/CommandGuide/html/opt.html

Reid.

On Fri, 2004-09-03 at 19:04, 夏一民 wrote:
> I modify the Makefile, and it is not a problem. :)
> 
> > My pass has to call one function of a binary library. But when opt loads my pass, it tells me that the function is "undefined symbol". 
> > 
> > I copy the library to /usr/lib, and run ldconfig, but this is unuseful.
> > 
> > Should I modify the Makefile? :(
> > 
> > Thanks.
> > 
> > Xia
> 
> 
> 
> -------------------------------------------------------------------------------------周杰伦在"第一现场"与你面对面 http://smspop.163.com/special/jay200408/index2.html
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040903/166a59e3/attachment.sig>


More information about the llvm-dev mailing list