[LLVMdev] llvm::LoopPass (original) (raw)
Duncan Sands baldrick at free.fr
Sun Jul 22 23:45:11 PDT 2012
- Previous message: [LLVMdev] llvm::LoopPass
- Next message: [LLVMdev] llvm::LoopPass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.addRequiredllvm::LoopInfo(); } virtual bool runOnLoop(llvm::Loop* IncomingLoop, llvm::LPPassManager& LPMRef) { return false; } LoopParser() : llvmLoopPass(ID) {} }; char LoopParser::ID = 0; static llvm::RegisterPass 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
- Previous message: [LLVMdev] llvm::LoopPass
- Next message: [LLVMdev] llvm::LoopPass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]