<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 2, 2015 at 3:21 PM, Ziqiang Patrick Huang <span dir="ltr"><<a href="mailto:ziqiang.huang@duke.edu" target="_blank">ziqiang.huang@duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There is a getParent() function in MachineBasicBlock that returns non-const MachineFunction.<div><br></div><div>Patrick</div></div></blockquote></div><br clear="all"></div><div class="gmail_extra">The problem is that in<br>void EscalaAsmPrinter::EmitInstruction(const MachineInstr *MI), MI is a const. So whenever I call MI->getParent()->getParent() I get a const method. Is there a different way to clone a MachineInstr?<br><br><br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div>