<div dir="ltr">Hi Nick,<div><br></div><div>I have only a couple of pedantic nits;</div><div><br></div><div><div>+  case LTO_CODEGEN_PIC_MODEL_DEFAULT:</div><div>+    //already default</div><div>+    break;</div></div><div>
<br></div><div>It's convention in LLVM to have a space after the // and capitalise the first letter of the comment (it should read like prose).</div><div><br></div><div>+  //Make the relocation model obey -relocation-model<br>
</div><div><br></div><div>I'm not sure this comment actually adds value - it seems a comment-for-comment's-sake.</div><div><br></div><div>Other than that, LGTM. I'm not aware of any code owner for LTO (Bill Wendling is in CODE_OWNERS.txt for libLTO, but this is different) and this patch seems fairly trivial. So if you'll make the changes I requested and send a new version of the patch, I can commit it for you.</div>
<div><br></div><div>Cheers,</div><div><br></div><div>James</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 April 2014 13:40, Nick Tomlinson <span dir="ltr"><<a href="mailto:nick.tomlinson@arm.com" target="_blank">nick.tomlinson@arm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
Currently, llvm-lto always emits position independent code, as this is<br>
hard-coded behaviour. It therefore ignores -relocation-model. The attached<br>
patch fixes this problem. I have also changed the default relocation model<br>
to the LLVM default, rather than dynamic. This seemed the most sensible<br>
thing to do now that llvm-lto allows explicit selection of relocation model.<br>
Please could someone review it?<br>
<br>
Many Thanks<br>
<br>
p.s: My first attempt at sending this message failed, so just in case it<br>
does appear later as a duplicate, that's why<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>