summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-07-14 17:57:33 +0000
committerRui Ueyama <ruiu@google.com>2016-07-14 17:57:33 +0000
commitcb7d6e955d74fc58b1a537023aef0f566d412c42 (patch)
treeaab84998fdb759762f407e8514b680b228bf9605
parent941faa77adb172a17a84b9d8af8ea5a097badfbe (diff)
downloadbcm5719-llvm-cb7d6e955d74fc58b1a537023aef0f566d412c42.tar.gz
bcm5719-llvm-cb7d6e955d74fc58b1a537023aef0f566d412c42.zip
Update error message to use "ld.lld" instead of "lld -flavor gnu".
Dispatching based on argv[0] seems to be more convenient for users than dispatching based on -flavor option. Currently, when a user invoke LLD as "lld", we recommend them pass -flavor option. This patch changes the message so that we recommend use ld.lld, ld or lld-link instead. Differential Revision: http://reviews.llvm.org/D22321 llvm-svn: 275448
-rw-r--r--lld/tools/lld/lld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/tools/lld/lld.cpp b/lld/tools/lld/lld.cpp
index ae40de4b53f..8805e02e8c4 100644
--- a/lld/tools/lld/lld.cpp
+++ b/lld/tools/lld/lld.cpp
@@ -109,7 +109,7 @@ int main(int Argc, const char **Argv) {
case Darwin:
return !mach_o::link(Args);
default:
- die("-flavor option is missing. Available flavors are "
- "gnu, darwin or link.");
+ die("lld is a generic driver.\n"
+ "Invoke ld.lld (Unix), ld (Mac) or lld-link (Windows) instead.");
}
}
OpenPOWER on IntegriCloud