[PATCH] D22123: Fix LTO document
Piotr Padlewski via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 17:00:09 PDT 2016
Prazek created this revision.
Prazek added reviewers: tejohnson, pcc.
Prazek added subscribers: eraman, llvm-commits, mehdi_amini.
Prazek set the repository for this revision to rL LLVM.
fixed very old document
Repository:
rL LLVM
http://reviews.llvm.org/D22123
Files:
docs/LinkTimeOptimization.rst
Index: docs/LinkTimeOptimization.rst
===================================================================
--- docs/LinkTimeOptimization.rst
+++ docs/LinkTimeOptimization.rst
@@ -87,9 +87,9 @@
.. code-block:: console
- % clang -emit-llvm -c a.c -o a.o # <-- a.o is LLVM bitcode file
+ % clang -flto -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
+ % clang -flto a.o main.o -o main # <-- standard link command with -flto
* In this example, the linker recognizes that ``foo2()`` is an externally
visible symbol defined in LLVM bitcode file. The linker completes its usual
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22123.63168.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160708/fce881aa/attachment.bin>
More information about the llvm-commits
mailing list