Index: llvm/trunk/test/tools/llvm-strings/all-sections.test =================================================================== --- llvm/trunk/test/tools/llvm-strings/all-sections.test +++ llvm/trunk/test/tools/llvm-strings/all-sections.test @@ -0,0 +1,3 @@ +RUN: llvm-strings -a %S/Inputs/abcd | FileCheck %s +RUN: llvm-strings --all %S/Inputs/abcd | FileCheck %s +CHECK: abcd Index: llvm/trunk/tools/llvm-strings/llvm-strings.cpp =================================================================== --- llvm/trunk/tools/llvm-strings/llvm-strings.cpp +++ llvm/trunk/tools/llvm-strings/llvm-strings.cpp @@ -41,6 +41,12 @@ 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"),