[llvm-commits] [llvm] r169990 - /llvm/trunk/docs/LinkTimeOptimization.rst

Dmitri Gribenko gribozavr at gmail.com
Wed Dec 12 08:58:13 PST 2012


Author: gribozavr
Date: Wed Dec 12 10:58:13 2012
New Revision: 169990

URL: http://llvm.org/viewvc/llvm-project?rev=169990&view=rev
Log:
Documentation: cleanup

Modified:
    llvm/trunk/docs/LinkTimeOptimization.rst

Modified: llvm/trunk/docs/LinkTimeOptimization.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LinkTimeOptimization.rst?rev=169990&r1=169989&r2=169990&view=diff
==============================================================================
--- llvm/trunk/docs/LinkTimeOptimization.rst (original)
+++ llvm/trunk/docs/LinkTimeOptimization.rst Wed Dec 12 10:58:13 2012
@@ -85,9 +85,10 @@
     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 @@
   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





More information about the llvm-commits mailing list