diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-06-21 11:49:20 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-06-21 11:49:20 +0000 |
| commit | 9485b265e8a88c34c30467deee54e51299be73e1 (patch) | |
| tree | 06c9dc0d46d8f5d10d656ef73ed629e93f3c47f9 /llvm/test/tools/llvm-symbolizer | |
| parent | d76c7b1c2a79477424d191d4c7b1b8f4d30004ee (diff) | |
| download | bcm5719-llvm-9485b265e8a88c34c30467deee54e51299be73e1.tar.gz bcm5719-llvm-9485b265e8a88c34c30467deee54e51299be73e1.zip | |
[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
Diffstat (limited to 'llvm/test/tools/llvm-symbolizer')
| -rw-r--r-- | llvm/test/tools/llvm-symbolizer/help.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-symbolizer/help.test b/llvm/test/tools/llvm-symbolizer/help.test index 5c41fccb648..12339463631 100644 --- a/llvm/test/tools/llvm-symbolizer/help.test +++ b/llvm/test/tools/llvm-symbolizer/help.test @@ -1,8 +1,12 @@ -RUN: llvm-symbolizer -help | FileCheck %s --check-prefix=SYMBOLIZER -RUN: llvm-addr2line -help | FileCheck %s --check-prefix=ADDR2LINE +RUN: llvm-symbolizer -h | FileCheck %s --check-prefix=SYMBOLIZER +RUN: llvm-symbolizer --help | FileCheck %s --check-prefix=SYMBOLIZER +RUN: llvm-addr2line -h | FileCheck %s --check-prefix=ADDR2LINE +RUN: llvm-addr2line --help | FileCheck %s --check-prefix=ADDR2LINE SYMBOLIZER: OVERVIEW: llvm-symbolizer SYMBOLIZER: USAGE: llvm-symbolizer{{(.exe)?}} [options] <input addresses>... +SYMBOLIZER: @FILE ADDR2LINE: OVERVIEW: llvm-addr2line ADDR2LINE: USAGE: llvm-addr2line{{(.exe)?}} [options] <input addresses>... +ADDR2LINE: @FILE |

