From 6835cac2f966193870686e081d8d4ac63ac4fe47 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 14 Nov 2017 19:58:36 +0000 Subject: [llvm-strings] Add support for the -a/--all options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 llvm-svn: 318185 --- llvm/tools/llvm-strings/llvm-strings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/tools/llvm-strings/llvm-strings.cpp') diff --git a/llvm/tools/llvm-strings/llvm-strings.cpp b/llvm/tools/llvm-strings/llvm-strings.cpp index 5053e9b97b7..638d58fce2b 100644 --- a/llvm/tools/llvm-strings/llvm-strings.cpp +++ b/llvm/tools/llvm-strings/llvm-strings.cpp @@ -41,6 +41,12 @@ static cl::opt cl::init(4)); static cl::alias MinLengthShort("n", cl::desc(""), cl::aliasopt(MinLength)); +static cl::opt + 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 }; static cl::opt Radix("radix", cl::desc("print the offset within the file"), -- cgit v1.2.3