[llvm] r294759 - Fix doc for `-opt-bisect-limit`: the LTO option prefix for lld is -mllvm
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 09:16:00 PST 2017
Author: mehdi_amini
Date: Fri Feb 10 11:16:00 2017
New Revision: 294759
URL: http://llvm.org/viewvc/llvm-project?rev=294759&view=rev
Log:
Fix doc for `-opt-bisect-limit`: the LTO option prefix for lld is -mllvm
Thanks Davide to catch it in my previous patch.
Modified:
llvm/trunk/docs/OptBisect.rst
Modified: llvm/trunk/docs/OptBisect.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/OptBisect.rst?rev=294759&r1=294758&r2=294759&view=diff
==============================================================================
--- llvm/trunk/docs/OptBisect.rst (original)
+++ llvm/trunk/docs/OptBisect.rst Fri Feb 10 11:16:00 2017
@@ -65,10 +65,10 @@ following syntax will set a bisect limit
::
- # When using Gold or lld
- clang -flto -Wl,-plugin-opt,-opt-bisect-limit=256 my_file.o my_other_file.o
- # When using ld64 (macOS)
+ # When using lld, or ld64 (macOS)
clang -flto -Wl,-mllvm,-opt-bisect-limit=256 my_file.o my_other_file.o
+ # When using Gold
+ clang -flto -Wl,-plugin-opt,-opt-bisect-limit=256 my_file.o my_other_file.o
LTO passes are run by a library instance invoked by the linker. Therefore any
passes run in the primary driver compilation phase are not affected by options
More information about the llvm-commits
mailing list