[PATCH] D22123: Fix LTO document

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 17:04:18 PDT 2016


mehdi_amini accepted this revision.
mehdi_amini added a reviewer: mehdi_amini.
mehdi_amini added a comment.
This revision is now accepted and ready to land.

LGTM.


================
Comment at: docs/LinkTimeOptimization.rst:92
@@ -91,3 +91,3 @@
   % 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
 
----------------
Note: this is a no-op on OS X for instance, but it does not hurt either.



Repository:
  rL LLVM

http://reviews.llvm.org/D22123





More information about the llvm-commits mailing list