[lld] r188963 - [lld][Darwin] fixing an accidentally removed change
Shankar Easwaran
shankare at codeaurora.org
Wed Aug 21 16:31:58 PDT 2013
Author: shankare
Date: Wed Aug 21 18:31:58 2013
New Revision: 188963
URL: http://llvm.org/viewvc/llvm-project?rev=188963&view=rev
Log:
[lld][Darwin] fixing an accidentally removed change
Modified:
lld/trunk/lib/Driver/DarwinLdDriver.cpp
Modified: lld/trunk/lib/Driver/DarwinLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/DarwinLdDriver.cpp?rev=188963&r1=188962&r2=188963&view=diff
==============================================================================
--- lld/trunk/lib/Driver/DarwinLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/DarwinLdDriver.cpp Wed Aug 21 18:31:58 2013
@@ -208,6 +208,16 @@ bool DarwinLdDriver::parse(int argc, con
ctx.setInputGraph(std::move(inputGraph));
+ // Handle -help
+ if (parsedArgs->getLastArg(OPT_help)) {
+ table.PrintHelp(llvm::outs(), argv[0], "LLVM Darwin Linker", false);
+ // If only -help on command line, don't try to do any linking
+ if ( argc == 2 ) {
+ ctx.setDoNothing(true);
+ return false;
+ }
+ }
+
// Validate the combination of options used.
if (ctx.validate(diagnostics))
return true;
More information about the llvm-commits
mailing list