From: Timm Bäder Date: Fri, 16 Jul 2021 07:30:57 +0000 (+0200) Subject: Revert "[llvm][tools] Hide unrelated llvm-cfi-verify options" X-Git-Tag: llvmorg-14-init~1278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d3dc9523f9b2ec9d83d37bd8a757726f37b6ee5;p=platform%2Fupstream%2Fllvm.git Revert "[llvm][tools] Hide unrelated llvm-cfi-verify options" This reverts commit 7c63726072005cc331bb21694c9022e6d18a3b93. --- diff --git a/llvm/test/tools/llvm-cfi-verify/help.test b/llvm/test/tools/llvm-cfi-verify/help.test deleted file mode 100644 index f14c5f2..0000000 --- a/llvm/test/tools/llvm-cfi-verify/help.test +++ /dev/null @@ -1,7 +0,0 @@ -# RUN: llvm-cfi-verify --help | FileCheck %s --check-prefix HELP --implicit-check-not='{{[Oo]}}ptions:' - -# HELP: OVERVIEW: -# HELP: USAGE: -# HELP: CFI Verify Options: -# HELP: Color Options: -# HELP: Generic Options: diff --git a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp index 820334c..1331442b 100644 --- a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp +++ b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp @@ -32,24 +32,21 @@ using namespace llvm; using namespace llvm::object; using namespace llvm::cfi_verify; -static cl::OptionCategory CFIVerifyCategory("CFI Verify Options"); - cl::opt InputFilename(cl::Positional, cl::desc(""), - cl::Required, cl::cat(CFIVerifyCategory)); + cl::Required); cl::opt BlacklistFilename(cl::Positional, cl::desc("[blacklist file]"), - cl::init("-"), - cl::cat(CFIVerifyCategory)); + cl::init("-")); cl::opt PrintGraphs( "print-graphs", cl::desc("Print graphs around indirect CF instructions in DOT format."), - cl::init(false), cl::cat(CFIVerifyCategory)); + cl::init(false)); cl::opt PrintBlameContext( "blame-context", cl::desc("Print the blame context (if possible) for BAD instructions. This " "specifies the number of lines of context to include, where zero " "disables this feature."), - cl::init(0), cl::cat(CFIVerifyCategory)); + cl::init(0)); cl::opt PrintBlameContextAll( "blame-context-all", cl::desc("Prints the blame context (if possible) for ALL instructions. " @@ -57,9 +54,9 @@ cl::opt PrintBlameContextAll( "instructions (see --blame-context). If --blame-context is " "unspecified, it prints this number of contextual lines for BAD " "instructions as well."), - cl::init(0), cl::cat(CFIVerifyCategory)); + cl::init(0)); cl::opt Summarize("summarize", cl::desc("Print the summary only."), - cl::init(false), cl::cat(CFIVerifyCategory)); + cl::init(false)); ExitOnError ExitOnErr; @@ -248,7 +245,6 @@ printIndirectCFInstructions(FileAnalysis &Analysis, } int main(int argc, char **argv) { - cl::HideUnrelatedOptions({&CFIVerifyCategory, &ColorCategory}); cl::ParseCommandLineOptions( argc, argv, "Identifies whether Control Flow Integrity protects all indirect control "