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
This commit is contained in:
Rui Ueyama 2016-07-14 17:57:33 +00:00
parent 941faa77ad
commit cb7d6e955d

@ -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.");
}
}