[LLVMdev] llvm::LoopPass

Edvard Ghazaryan edvard_gh at yahoo.com
Mon Jul 23 00:06:31 PDT 2012


Thanks Duncan.

Edvard


________________________________
 From: Duncan Sands <baldrick at free.fr>
To: llvmdev at cs.uiuc.edu 
Sent: Sunday, July 22, 2012 11:45 PM
Subject: Re: [LLVMdev] llvm::LoopPass
 
Hi Edvard, _ZTIN4llvm8LoopPassE is "typeinfo for llvm::LoopPass".  LLVM is
built without typeinfo, so you will need to build your pass with -fno-rtti.

Ciao, Duncan.

> I'm trying to implement LoopPass.
> Here is simple code :
>
>    class LoopParser: public llvm::LoopPass
>    {
>      public:
>        static char ID;
>
>      public:
>        virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const
>        {
>          AU.addRequiredID(llvm::LoopSimplifyID);
>          AU.addPreservedID(llvm::LoopSimplifyID);
>          AU.addRequired<llvm::LoopInfo>();
>        }
>
>        virtual bool runOnLoop(llvm::Loop* IncomingLoop,
>                               llvm::LPPassManager& LPM_Ref)
>       { return false; }
>
>        LoopParser() : llvmLoopPass(ID)
>        {}
>    };
> char LoopParser::ID = 0;
> static llvm::RegisterPass<LoopParser> XX("LoopParser", "TODO ", false, false);
>
> when I'am trying to load  a get the error message : undefined symbol:
> _ZTIN4llvm8LoopPassE
> How can I fix?
>
> Thanks in advance,
> Edvard
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>

_______________________________________________
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/20120723/5fc5e36c/attachment.html>


More information about the llvm-dev mailing list