<div dir="ltr">Hi Nick,<div><br></div><div>Thanks, committed at r206177!</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 14:51, 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>
I’ve made the changed requested in the attached patch.<br>
<br>
Thanks<br>
<br>
From: <a href="mailto:mankeyrabbit@gmail.com">mankeyrabbit@gmail.com</a> [mailto:<a href="mailto:mankeyrabbit@gmail.com">mankeyrabbit@gmail.com</a>] On Behalf Of James Molloy<br>
Sent: 14 April 2014 14:33<br>
To: Nick Tomlinson<br>
Cc: LLVM Commits<br>
Subject: Re: [PATCH] Make llvm-lto obey -relocation-model<br>
<div class="HOEnZb"><div class="h5"><br>
Hi Nick,<br>
<br>
I have only a couple of pedantic nits;<br>
<br>
+  case LTO_CODEGEN_PIC_MODEL_DEFAULT:<br>
+    //already default<br>
+    break;<br>
<br>
It's convention in LLVM to have a space after the // and capitalise the first letter of the comment (it should read like prose).<br>
<br>
+  //Make the relocation model obey -relocation-model<br>
<br>
I'm not sure this comment actually adds value - it seems a comment-for-comment's-sake.<br>
<br>
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.<br>

<br>
Cheers,<br>
<br>
James<br>
<br>
On 14 April 2014 13:40, Nick Tomlinson <<a href="mailto:nick.tomlinson@arm.com">nick.tomlinson@arm.com</a>> wrote:<br>
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>
</div></div></blockquote></div><br></div>