[LLVMdev] LLVM Module Pass problem!

Saman Zonouz samy_442 at yahoo.com
Fri Jul 24 06:16:15 PDT 2009


Thanks John, the problem was that the constructor was not defined. That fixed the prob.
::Saman




________________________________
From: John Criswell <criswell at cs.uiuc.edu>
To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
Sent: Thursday, July 23, 2009 4:18:12 PM
Subject: Re: [LLVMdev] LLVM Module Pass problem!

Saman Zonouz wrote:
> Dear All,
>
> I am new to LLVM and try to write a Module pass. In the same .cpp file
> I am defining a class.
> The problem is that whenever I instantiate an object from the class I
> get the following error while running the pass:
>
> opt: symbol lookup error: ../llvm/Debug/lib/MyPass.so: undefined
> symbol: _ZN10Thread_MyPassC1Ev
>
> The pass is compiled correctly but does not run.  Could you someone
> please let me know what is wrong?
Are the methods of your class defined within the same .cpp file or in
another .cpp file?  It appears that your pass is referencing those
methods but that they are not included within MyPass.so.

-- John T.

>
> Thanks in advance,
> ::Saman
>
>

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu        http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090724/f477281f/attachment.html>


More information about the llvm-dev mailing list