diff options
author | Shankar Easwaran <shankare@codeaurora.org> | 2013-08-21 23:31:58 +0000 |
---|---|---|
committer | Shankar Easwaran <shankare@codeaurora.org> | 2013-08-21 23:31:58 +0000 |
commit | 20326093276bcc8cb5c9dc6f23c1525f83f9b90f (patch) | |
tree | 57b69f7143568c3a811c82ce214e4ae8f2ec0089 | |
parent | eaa49e252d8b5e52533f1640fe848071125371f5 (diff) | |
download | bcm5719-llvm-20326093276bcc8cb5c9dc6f23c1525f83f9b90f.tar.gz bcm5719-llvm-20326093276bcc8cb5c9dc6f23c1525f83f9b90f.zip |
[lld][Darwin] fixing an accidentally removed change
llvm-svn: 188963
-rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 90469d89731..8ebbb8c5409 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -208,6 +208,16 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], 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; |