forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364036 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
18 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RUN: llvm-cxxfilt -h | FileCheck %s | ||
RUN: llvm-cxxfilt --help | FileCheck %s | ||
|
||
CHECK: OVERVIEW: llvm symbol undecoration tool | ||
CHECK: USAGE: llvm-cxxfilt{{(.exe)?}} [options] <mangled>{{$}} | ||
CHECK: OPTIONS: | ||
CHECK: @FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
RUN: llvm-objdump --help | FileCheck %s | ||
|
||
CHECK: OVERVIEW: llvm object file dumper | ||
CHECK: USAGE: llvm-objdump{{(.exe)?}} [options] <input object files>{{$}} | ||
CHECK: OPTIONS: | ||
CHECK: @FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] <input files>{{$}} | ||
CHECK: OPTIONS: | ||
CHECK: @FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RUN: llvm-strings -h | FileCheck %s | ||
RUN: llvm-strings --help | FileCheck %s | ||
|
||
CHECK: OVERVIEW: llvm string dumper | ||
CHECK: USAGE: llvm-strings{{(.exe)?}} [options] <input object files>{{$}} | ||
CHECK: OPTIONS: | ||
CHECK: @FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters