<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Sorry, of course the method is runOnLoop, not runOnPass.<br>Giacomo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 30 April 2013 19:39, Giacomo Tagliabue <span dir="ltr"><<a href="mailto:giacomo.tag@gmail.com" target="_blank">giacomo.tag@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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 runOnPass method, 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" style="font-family:arial,helvetica,sans-serif;font-size:small">
<br></div><div class="gmail_default"><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"><span style="font-family:arial,helvetica,sans-serif">Thank you very much,<br>Giacomo</span></div></div>
</blockquote></div><br></div>