From 3389dbcd243d91e1109009fb95bcdd8a779ea5f2 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 17 Jan 2013 18:57:32 +0000 Subject: [PATCH] [docs] Get rid of some UTF8 characters (non-breaking space maybe). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172741 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.rst | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 6706f34ba69..ce0676fc7b7 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -148,20 +148,20 @@ symbol table entries. Here is an example of the "hello world" module: .. code-block:: llvm - ; Declare the string constant as a global constant.  - @.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"  + ; Declare the string constant as a global constant. + @.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00" - ; External declaration of the puts function  - declare i32 @puts(i8* nocapture) nounwind  + ; External declaration of the puts function + declare i32 @puts(i8* nocapture) nounwind ; Definition of main function - define i32 @main() { ; i32()*   - ; Convert [13 x i8]* to i8 *...  + define i32 @main() { ; i32()* + ; Convert [13 x i8]* to i8 *... %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0 - ; Call puts function to write out the string to stdout.  + ; Call puts function to write out the string to stdout. call i32 @puts(i8* %cast210) - ret i32 0  + ret i32 0 } ; Named metadata @@ -1554,7 +1554,7 @@ Examples: +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``i32 (i32)`` | function taking an ``i32``, returning an ``i32`` | +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``float (i16, i32 *) *`` | :ref:`Pointer ` to a function that takes an ``i16`` and a :ref:`pointer ` to ``i32``, returning ``float``. | +| ``float (i16, i32 *) *`` | :ref:`Pointer ` to a function that takes an ``i16`` and a :ref:`pointer ` to ``i32``, returning ``float``. | +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``i32 (i8*, ...)`` | A vararg function that takes at least one :ref:`pointer ` to ``i8`` (char in C), which returns an integer. This is the signature for ``printf`` in LLVM. | +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -1605,7 +1605,7 @@ Examples: +------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``{ i32, i32, i32 }`` | A triple of three ``i32`` values | +------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``{ float, i32 (i32) * }`` | A pair, where the first element is a ``float`` and the second element is a :ref:`pointer ` to a :ref:`function ` that takes an ``i32``, returning an ``i32``. | +| ``{ float, i32 (i32) * }`` | A pair, where the first element is a ``float`` and the second element is a :ref:`pointer ` to a :ref:`function ` that takes an ``i32``, returning an ``i32``. | +------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``<{ i8, i32 }>`` | A packed struct known to be 5 bytes in size. | +------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -2578,25 +2578,25 @@ following key-value pairs: * - Key - Value - * - ``Objective-C Version`` + * - ``Objective-C Version`` - **[Required]** — The Objective-C ABI version. Valid values are 1 and 2. - * - ``Objective-C Image Info Version`` + * - ``Objective-C Image Info Version`` - **[Required]** — The version of the image info section. Currently always 0. - * - ``Objective-C Image Info Section`` + * - ``Objective-C Image Info Section`` - **[Required]** — The section to place the metadata. Valid values are ``"__OBJC, __image_info, regular"`` for Objective-C ABI version 1, and ``"__DATA,__objc_imageinfo, regular, no_dead_strip"`` for Objective-C ABI version 2. - * - ``Objective-C Garbage Collection`` + * - ``Objective-C Garbage Collection`` - **[Required]** — Specifies whether garbage collection is supported or not. Valid values are 0, for no garbage collection, and 2, for garbage collection supported. - * - ``Objective-C GC Only`` + * - ``Objective-C GC Only`` - **[Optional]** — Specifies that only garbage collection is supported. If present, its value must be 6. This flag requires that the ``Objective-C Garbage Collection`` flag have the value 2. @@ -2619,7 +2619,7 @@ 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 +using the ``Linker Options`` key. The merge behavior for this flag is required to be ``AppendUnique``, and the value for the key is expected to be a metadata node which should be a list of other metadata nodes, each of which should be a list of metadata strings defining linker options. -- 2.34.1