summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LinkTimeOptimization.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/LinkTimeOptimization.rst b/llvm/docs/LinkTimeOptimization.rst
index 55a7486874a..9c1e5607596 100644
--- a/llvm/docs/LinkTimeOptimization.rst
+++ b/llvm/docs/LinkTimeOptimization.rst
@@ -87,9 +87,9 @@ To compile, run:
.. 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
OpenPOWER on IntegriCloud