[lld] r275448 - Update error message to use "ld.lld" instead of "lld -flavor gnu".

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 10:57:33 PDT 2016


Author: ruiu
Date: Thu Jul 14 12:57:33 2016
New Revision: 275448

URL: http://llvm.org/viewvc/llvm-project?rev=275448&view=rev
Log:
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

Modified:
    lld/trunk/tools/lld/lld.cpp

Modified: lld/trunk/tools/lld/lld.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/tools/lld/lld.cpp?rev=275448&r1=275447&r2=275448&view=diff
==============================================================================
--- lld/trunk/tools/lld/lld.cpp (original)
+++ lld/trunk/tools/lld/lld.cpp Thu Jul 14 12:57:33 2016
@@ -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.");
   }
 }




More information about the llvm-commits mailing list