summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/llvm-strings/llvm-strings.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
committerpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
commitbdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch)
treec50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/tools/llvm-strings/llvm-strings.cpp
parentPrint a 'p' flag for file descriptors that were opened after pledge(2). (diff)
downloadwireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz
wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/tools/llvm-strings/llvm-strings.cpp')
-rw-r--r--gnu/llvm/tools/llvm-strings/llvm-strings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/llvm/tools/llvm-strings/llvm-strings.cpp b/gnu/llvm/tools/llvm-strings/llvm-strings.cpp
index 5053e9b97b7..638d58fce2b 100644
--- a/gnu/llvm/tools/llvm-strings/llvm-strings.cpp
+++ b/gnu/llvm/tools/llvm-strings/llvm-strings.cpp
@@ -41,6 +41,12 @@ static cl::opt<int>
cl::init(4));
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 };
static cl::opt<radix>
Radix("radix", cl::desc("print the offset within the file"),