[llvm-commits] [llvm] r172681 - /llvm/trunk/docs/LangRef.rst

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 16 16:31:13 PST 2013


On Thu, Jan 17, 2013 at 2:16 AM, Daniel Dunbar <daniel at zuster.org> wrote:
> Author: ddunbar
> Date: Wed Jan 16 18:16:27 2013
> New Revision: 172681
>
> URL: http://llvm.org/viewvc/llvm-project?rev=172681&view=rev
> Log:
> [IR] Reserve/define the purpose for the "Linker Options" metadata flags.
>
> Modified:
>     llvm/trunk/docs/LangRef.rst
>
> Modified: llvm/trunk/docs/LangRef.rst
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=172681&r1=172680&r2=172681&view=diff
> ==============================================================================
> --- llvm/trunk/docs/LangRef.rst (original)
> +++ llvm/trunk/docs/LangRef.rst Wed Jan 16 18:16:27 2013
> @@ -2610,6 +2610,40 @@
>  -  A module with ``Objective-C Garbage Collection`` set to 0 cannot be
>     merged with a module with ``Objective-C GC Only`` set to 6.
>
> +Automatic Linker Flags Module Flags Metadata
> +--------------------------------------------
> +
> +Some targets support embedding flags to the linker inside individual object
> +files. Typically this is used in conjunction with language extensions which
> +allow source files to explicitly declare the libraries they depend on, and have
> +these automatically be transmitted to the linker via object files.
> +
> +These flags are encoded in the IR using metadata in the module flags section,
> +using the ``Linker Options`` key. The merge behavior for this flag is required

There's some UTF-8 after 'Linker'.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/




More information about the llvm-commits mailing list