mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 17:06:15 +00:00
[llvm-strings] Add support for the -a/--all options
They don't actually change nay behaviour, as llvm-strings currently checks the whole object without looking at individual sections anyway. This allows using llvm-strings in a context that explicitly passes the -a option. Differential Revision: https://reviews.llvm.org/D40020 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35b1f99e94
commit
ba2da13128
3
test/tools/llvm-strings/all-sections.test
Normal file
3
test/tools/llvm-strings/all-sections.test
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
RUN: llvm-strings -a %S/Inputs/abcd | FileCheck %s
|
||||||
|
RUN: llvm-strings --all %S/Inputs/abcd | FileCheck %s
|
||||||
|
CHECK: abcd
|
@ -41,6 +41,12 @@ static cl::opt<int>
|
|||||||
cl::init(4));
|
cl::init(4));
|
||||||
static cl::alias MinLengthShort("n", cl::desc(""), cl::aliasopt(MinLength));
|
static cl::alias MinLengthShort("n", cl::desc(""), cl::aliasopt(MinLength));
|
||||||
|
|
||||||
|
static cl::opt<bool>
|
||||||
|
AllSections("all",
|
||||||
|
cl::desc("Check all sections, not just the data section"));
|
||||||
|
static cl::alias AllSectionsShort("a", cl::desc(""),
|
||||||
|
cl::aliasopt(AllSections));
|
||||||
|
|
||||||
enum radix { none, octal, hexadecimal, decimal };
|
enum radix { none, octal, hexadecimal, decimal };
|
||||||
static cl::opt<radix>
|
static cl::opt<radix>
|
||||||
Radix("radix", cl::desc("print the offset within the file"),
|
Radix("radix", cl::desc("print the offset within the file"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user