<div dir="ltr">Actually this code is outside of lld and was written mainly by Michael. I'd like to get his input about API rework. If he's okay with API rework I'm fine to work on that. However, what I'm trying to do is to add a relatively small method to the set of methods which spans multiple files in a consistent manner, so I'm tempted to say API rework shouldn't block this change.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 2:41 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 2:37 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> I agree with you in general but in this case consistency looks more<br>
> important than that. Look at the other methods, such as the above two.<br>
> getCOFFHeader() and getPE32Header() will never fail and will always return<br>
> object_error::success. Other methods in the other files in the same<br>
> directory are written in the similar manner. If we change the signature of<br>
> this function, it won't fix the API, but it'd make the API cluttered.<br>
><br>
> I'd think we should change all the other methods in the directory not to<br>
> return error_code, if we think it's the right thing to do. That should be<br>
> done in another patch.<br>
<br>
</div>I think we should change it all, yes. If you don't want to have the<br>
methods temporarily in a mixed state, then please change the existing<br>
ones first.</blockquote></div><br></div></div>Rafael, I don't think that's necessary. This is all code that Rui has written and been maintaining. If he would prefer to do the API rework in a follow-up patch that seems totally fine.</div>


</div>
</blockquote></div><br></div>