summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-09-07 23:30:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-09-07 23:30:48 +0000
commit39c150eecbc1cf83836c59a516ee9aa1795a189c (patch)
treec7143559b7d4b1446f922dc039f5a9dcb23ae2d2 /llvm/include/llvm/Support/CommandLine.h
parent975293f0e593761a5d2d4446463fecd14b425aff (diff)
downloadbcm5719-llvm-39c150eecbc1cf83836c59a516ee9aa1795a189c.tar.gz
bcm5719-llvm-39c150eecbc1cf83836c59a516ee9aa1795a189c.zip
Don't call exit from cl::PrintHelpMessage.
Most callers were not expecting the exit(0) and trying to exit with a different value. This also adds back the call to cl::PrintHelpMessage in llvm-ar. llvm-svn: 312761
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 22d18194dd8..2357a122a47 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -1762,8 +1762,6 @@ void PrintVersionMessage();
/// This function just prints the help message, exactly the same way as if the
/// -help or -help-hidden option had been given on the command line.
///
-/// NOTE: THIS FUNCTION TERMINATES THE PROGRAM!
-///
/// \param Hidden if true will print hidden options
/// \param Categorized if true print options in categories
void PrintHelpMessage(bool Hidden = false, bool Categorized = false);
OpenPOWER on IntegriCloud