<div dir="ltr">Unless this is a part of public interface or there's a class that want to override this helper function now, it doesn't make sense to make this virtual now. Making it a virtual function would not only incur runtime performance penalty, but also give readers a wrong impression that the method would actually be overriden by derived classes.<div>

<br></div><div>You can add virtual when you need it pretty easily.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 11:02 PM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Derived classes may want to override that function need be.<div class="HOEnZb"><div class="h5"><br>
<br>
On 10/8/2013 12:59 AM, Rui Ueyama wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why? It's not overriden by anyone.<br>
<br>
<br>
On Mon, Oct 7, 2013 at 10:58 PM, Shankar Easwaran<br>
<<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>><u></u>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  On 10/8/2013 12:52 AM, Rui Ueyama wrote:<br>
<br>
+307  error_code readFile(const LinkingContext &ctx, raw_ostream &diagnostics);<br>
<br>
  Make this virtual.<br>
<br>
Thanks<br>
<br>
Shankar Easwaran<br>
<br>
--<br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
</div></div></blockquote></div><br></div>