<div dir="ltr"><div>Ah, this is terrible. I think this needs to be rewritten as an MI level pass at which point it'll have access to the MachineFunction etc.</div><div><br></div><div>Kostya?</div><div><br></div><div>-eric</div><div><br></div><div><br><div class="gmail_quote">On Wed, May 13, 2015 at 2:52 PM Akira Hatanaka <<a href="mailto:ahatanak@gmail.com">ahatanak@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">MCTargetOptions::SanitizeAddress is used in CreateX86AsmInstrumentation, which is called by X86AsmParser's constructor. Those functions don't have access to Function and therefore cannot look at the function attribute (they can be called when llvm-mc is used with -asm-instrumentation=address).<br>
<br>
<br>
<a href="http://reviews.llvm.org/D9570" target="_blank">http://reviews.llvm.org/D9570</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</blockquote></div></div></div>