OSDN Git Service

[XRay][tools] Handle "no subcommand" case for llvm-xray
authorDean Michael Berris <dberris@google.com>
Wed, 29 Mar 2017 04:55:45 +0000 (04:55 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 29 Mar 2017 04:55:45 +0000 (04:55 +0000)
commit8985450e52e924056c248786af72c1ea21a62f3a
treedceb47f9be723731495a9bbbfe199de2bb4fe00e
parentfdcdb2a04693e76bfa090da76ef897cde6685ff5
[XRay][tools] Handle "no subcommand" case for llvm-xray

Summary:
Currently the llvm-xray commandline tool fails to handle the case for
when no subcommand is provided in a graceful manner. This fixes that to
print the help message explaining the subcommands and the available
options.

Reviewers: pcc, pelikan

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31409

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298975 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-xray/X86/no-subcommand-noassert.txt [new file with mode: 0644]
tools/llvm-xray/llvm-xray.cc