diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-12-12 16:58:13 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-12-12 16:58:13 +0000 |
commit | 427cfcb93780801a437b62ed75f9f393ec180fb5 (patch) | |
tree | 22b1b0e261f3584a1b9db2bc102d1ddb9188b6cb | |
parent | e40238069ea965f8cdbc9021eec26c0ebe2a33e2 (diff) | |
download | bcm5719-llvm-427cfcb93780801a437b62ed75f9f393ec180fb5.tar.gz bcm5719-llvm-427cfcb93780801a437b62ed75f9f393ec180fb5.zip |
Documentation: cleanup
llvm-svn: 169990
-rw-r--r-- | llvm/docs/LinkTimeOptimization.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/docs/LinkTimeOptimization.rst b/llvm/docs/LinkTimeOptimization.rst index 7eacf0bd0d0..822196ccf47 100644 --- a/llvm/docs/LinkTimeOptimization.rst +++ b/llvm/docs/LinkTimeOptimization.rst @@ -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 |