From f454301b56e9dda8caecad727ba80797387abd3d Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 29 Mar 2017 04:55:45 +0000 Subject: [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 llvm-svn: 298975 --- llvm/test/tools/llvm-xray/X86/no-subcommand-noassert.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 llvm/test/tools/llvm-xray/X86/no-subcommand-noassert.txt (limited to 'llvm/test/tools/llvm-xray') diff --git a/llvm/test/tools/llvm-xray/X86/no-subcommand-noassert.txt b/llvm/test/tools/llvm-xray/X86/no-subcommand-noassert.txt new file mode 100644 index 00000000000..3de328d73a4 --- /dev/null +++ b/llvm/test/tools/llvm-xray/X86/no-subcommand-noassert.txt @@ -0,0 +1,3 @@ +; RUN: llvm-xray | FileCheck %s + +; CHECK: OVERVIEW: XRay Tools -- cgit v1.2.3