<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div class="gmail_default">Hello,<br>I am building a loop pass following these instructions: <a href="http://llvm.org/docs/WritingAnLLVMPass.html" style="font-family:arial" target="_blank">http://llvm.org/docs/WritingAnLLVMPass.html</a><br>


Everything works fine, I did it many times for Function Passes, but in the runOnLoopmethod, whenever I call a method of the loop L passed as argument, for example L->begin(), I get the following error:</div><div class="gmail_default">


<br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<font face="arial, helvetica, sans-serif">opt: symbol lookup error: /home/giacomo/llvmcsfv/Debug+Asserts/lib/Acsl.so: undefined symbol: _ZNK4llvm8LoopBaseINS_10BasicBlockENS_4LoopEE5beginEv</font></blockquote><br>Where Acsl is the name of the loadable module. If I remove all the instructions from <span style="font-family:arial,helvetica,sans-serif">runOnPass but a debug print, it works fine (it prints it), so the problem is not the module.<br>


Does anybody have any Idea?</span></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,helvetica,sans-serif">Thank you very much,<br>Giacomo</span></div></div>


</div>