<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> While doing this I've found that some methods of MachineFunction are const<br>> but return non-const pointers to MachineFunction internal info. Is that all
<br>> right?<br><br>Which ones specifically?<br><br>-Chris</blockquote>
<div> </div>
<div>Probable candidates are:</div>
<div>getSSARegMap, getFrameInfo, getJumpTableInfo, getConstantPool, isPhysRegUsed, getBlockNumbered.</div>
<div> </div>
<div>They are const but return non-const pointers to object's internal data. Though I don't know if making two versions of each methods will be useful or it'll just make code bigger and compilation a bit longer :)</div>
<div> </div>
<div>isPhysRegUsed should be constified I suppose.</div>
<div> </div>
<div>And btw comment to addToMMBNumbering method is a bit old (refers to getNextMMBNumber, which doesn't exist already).</div><br> </div>