<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 9, 2018 at 8:25 AM, Rafael Avila de Espindola via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">James Henderson via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> writes:<br>
<br>
> By my understanding, the proposal is that the user input looks something<br>
> like:<br>
><br>
> #pragma linker_directive("lib", "m")<br>
><br>
> which is passed essentially as is to the linker, i.e. the directive payload<br>
> is a pair of strings, the first being "lib", the second "m". It is then up<br>
> to the linker to decide if it supports "lib" directives, and translate that<br>
> into the corresponding command, or do something else if it doesn't support<br>
> it, e.g. emit an error or ignore it. Neither the backend nor the frontend<br>
> need to do any conversion, and it makes it much clearer that these aren't<br>
> like any other command-line option (due to the limited set that can be<br>
> passed through, and the possible differences in behaviour, such as order on<br>
> the command-line).<br>
<br>
</span>This is exactly my understanding. I really like that the proposal is<br>
transparent to clang and llvm and avoids any confusion with command line<br>
options.<br></blockquote><div><br></div><div>That's my understanding too. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
Rafael<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</div></div></blockquote></div><br></div></div>