[LLVMdev] llvm::LoopPass

Duncan Sands baldrick at free.fr
Sun Jul 22 23:45:11 PDT 2012


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
>




More information about the llvm-dev mailing list