<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div>Hi Pedro,</div><div><br></div><div>Looks like r168484 is the first step to remove ASan instrumentation from doFinalization().</div><div><br></div>
<div class="gmail_quote">On Sat, Nov 17, 2012 at 1:26 AM, Pedro Artigas <span dir="ltr"><<a href="mailto:partigas@apple.com" target="_blank">partigas@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello All,<br>
<br>
There is an issue in AddressSanitizer today because it depends on it's doFinalization method be called before the Printer method to output the final code (that is the printer runOnModule call). This assumption seems invalid as the doFinalization method should AFAIK only be used for clean up tasks independent of activities of other passes.<br>

<br>
When I try to call doFinalization inside the MPPassManager::runOnModule method (to avoid changing the API to add doInitialization and doFinalization to the PassManager interface, as recommended by Chris) the assumption breaks as all the doFinalization methods will now be called after all the runOnModule or runOnFunction invocations.<br>

<br>
Any comments/suggestions?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Pedro Artigas<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a 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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</div>