diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-09-07 23:30:48 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-09-07 23:30:48 +0000 |
| commit | 39c150eecbc1cf83836c59a516ee9aa1795a189c (patch) | |
| tree | c7143559b7d4b1446f922dc039f5a9dcb23ae2d2 /llvm/tools/llvm-xray | |
| parent | 975293f0e593761a5d2d4446463fecd14b425aff (diff) | |
| download | bcm5719-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/tools/llvm-xray')
| -rw-r--r-- | llvm/tools/llvm-xray/llvm-xray.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-xray/llvm-xray.cc b/llvm/tools/llvm-xray/llvm-xray.cc index 98303e7be15..34c453a1eb4 100644 --- a/llvm/tools/llvm-xray/llvm-xray.cc +++ b/llvm/tools/llvm-xray/llvm-xray.cc @@ -46,4 +46,5 @@ int main(int argc, char *argv[]) { // If all else fails, we still print the usage message. cl::PrintHelpMessage(false, true); + return 0; } |

