summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-02-10 17:16:00 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-02-10 17:16:00 +0000
commitf1423e893dbafabc27b8d08a631bb8dd286f7b82 (patch)
treede3ad8617e21fe66c608001b1ad0c40e696d7828
parent1155ad1bc816a78ab1dfd70b8dadf8e7b3c47f48 (diff)
downloadbcm5719-llvm-f1423e893dbafabc27b8d08a631bb8dd286f7b82.tar.gz
bcm5719-llvm-f1423e893dbafabc27b8d08a631bb8dd286f7b82.zip
Fix doc for `-opt-bisect-limit`: the LTO option prefix for lld is -mllvm
Thanks Davide to catch it in my previous patch. llvm-svn: 294759
-rw-r--r--llvm/docs/OptBisect.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/OptBisect.rst b/llvm/docs/OptBisect.rst
index a9ac227a2af..14eb57bc7d5 100644
--- a/llvm/docs/OptBisect.rst
+++ b/llvm/docs/OptBisect.rst
@@ -65,10 +65,10 @@ following syntax will set a bisect limit for LTO transformations:
::
- # 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
OpenPOWER on IntegriCloud