Documentation: cleanup
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 12 Dec 2012 16:58:13 +0000 (16:58 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 12 Dec 2012 16:58:13 +0000 (16:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169990 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LinkTimeOptimization.rst

index 7eacf0bd0d01e88fb883ff9b01d373c1c1936c83..822196ccf47a7d6a6ba810f776e71a3843b40d8b 100644 (file)
@@ -85,9 +85,10 @@ invokes system linker.
     return foo1();
   }
 
-.. code-block:: bash
+To compile, run:
+
+.. code-block:: console
 
-  --- command lines ---
   % clang -emit-llvm -c a.c -o a.o   # <-- a.o is LLVM bitcode file
   % clang -c main.c -o main.o        # <-- main.o is native object file
   % clang a.o main.o -o main         # <-- standard link command without modifications
@@ -96,7 +97,7 @@ invokes system linker.
   visible symbol defined in LLVM bitcode file. The linker completes its usual
   symbol resolution pass and finds that ``foo2()`` is not used
   anywhere. This information is used by the LLVM optimizer and it
-  removes ``foo2()``.</li>
+  removes ``foo2()``.
 
 * As soon as ``foo2()`` is removed, the optimizer recognizes that condition ``i
   < 0`` is always false, which means ``foo3()`` is never used. Hence, the