mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-03 08:51:43 +00:00
Fix LTO document
Summary: fixed very old document Reviewers: tejohnson, pcc Subscribers: mehdi_amini, eraman, llvm-commits Differential Revision: http://reviews.llvm.org/D22121 llvm-svn: 274811
This commit is contained in:
parent
f56d44dbb2
commit
21b711148b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user