From 9485b265e8a88c34c30467deee54e51299be73e1 Mon Sep 17 00:00:00 2001 From: James Henderson Date: Fri, 21 Jun 2019 11:49:20 +0000 Subject: [binutils] Add response file option to help and docs Many LLVM-based tools already support response files (i.e. files containing a list of options, specified with '@'). This change simply updates the documentation and help text for some of these tools to include it. I haven't attempted to fix all tools, just a selection that I am interested in. I've taken the opportunity to add some tests for --help behaviour, where they were missing. We could expand these tests, but I don't think that's within scope of this patch. This fixes https://bugs.llvm.org/show_bug.cgi?id=42233 and https://bugs.llvm.org/show_bug.cgi?id=42236. Reviewed by: grimar, MaskRay, jkorous Differential Revision: https://reviews.llvm.org/D63597 llvm-svn: 364036 --- llvm/test/tools/llvm-size/help.test | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 llvm/test/tools/llvm-size/help.test (limited to 'llvm/test/tools/llvm-size/help.test') diff --git a/llvm/test/tools/llvm-size/help.test b/llvm/test/tools/llvm-size/help.test new file mode 100644 index 00000000000..a7bd6edf7a9 --- /dev/null +++ b/llvm/test/tools/llvm-size/help.test @@ -0,0 +1,7 @@ +RUN: llvm-size -h | FileCheck %s +RUN: llvm-size --help | FileCheck %s + +CHECK: OVERVIEW: llvm object size dumper +CHECK: USAGE: llvm-size{{(.exe)?}} [options] {{$}} +CHECK: OPTIONS: +CHECK: @FILE -- cgit v1.2.3