<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Thanks Duncan.</div><div><br></div><div>Edvard</div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Duncan Sands <baldrick@free.fr><br> <b><span style="font-weight: bold;">To:</span></b> llvmdev@cs.uiuc.edu <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, July 22, 2012 11:45 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] llvm::LoopPass<br> </font> </div> <br>
Hi Edvard, _ZTIN4llvm8LoopPassE is "typeinfo for llvm::LoopPass".  LLVM is<br>built without typeinfo, so you will need to build your pass with -fno-rtti.<br><br>Ciao, Duncan.<br><br>> I'm trying to implement LoopPass.<br>> Here is simple code :<br>><br>>    class LoopParser: public llvm::LoopPass<br>>    {<br>>      public:<br>>        static char ID;<br>><br>>      public:<br>>        virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const<br>>        {<br>>          AU.addRequiredID(llvm::LoopSimplifyID);<br>>          AU.addPreservedID(llvm::LoopSimplifyID);<br>>          AU.addRequired<llvm::LoopInfo>();<br>>        }<br>><br>>        virtual bool
 runOnLoop(llvm::Loop* IncomingLoop,<br>>                               llvm::LPPassManager& LPM_Ref)<br>>       { return false; }<br>><br>>        LoopParser() : llvmLoopPass(ID)<br>>        {}<br>>    };<br>> char LoopParser::ID = 0;<br>> static llvm::RegisterPass<LoopParser> XX("LoopParser", "TODO ", false, false);<br>><br>> when I'am trying to load  a get the error message : undefined symbol:<br>> _ZTIN4llvm8LoopPassE<br>> How can I fix?<br>><br>> Thanks in advance,<br>> Edvard<br>><br>><br>><br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>        
 http://llvm.cs.uiuc.edu<br>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev<br>><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br><br> </div> </div>  </div></body></html>