<div dir="ltr">Things like this in `lib/Target/ARM/ARMExpandPseudoInsts.cpp`<div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">FunctionPass *llvm::createARMExpandPseudoPass() {<br>  return new ARMExpandPseudo();<br>}</blockquote><div><br></div><div>And other functions have basically the same style.</div><div><br></div><div>What's the point of doing it this way instead of just calling `new ARMExpandPseudo` in any place that you would have called this function?</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Ahmed Samara</div><div dir="ltr"><div><div>M.S. Computer Engineering</div></div></div></div></div></div></div></div>
</div></div></div>