From: Philip Reames Date: Fri, 20 Feb 2015 23:32:03 +0000 (+0000) Subject: Hide a bunch of advanced testing options in default opt --help output X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f2122f73fe655fcdd33588b0782632cd850b75a6 Hide a bunch of advanced testing options in default opt --help output These are internal options. I need to go through, evaluate which are worth keeping and which not. Many of them should probably be renamed as well. Until I have time to do that, we can at least stop poluting the standard opt -help output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/PlaceSafepoints.cpp b/lib/Transforms/Scalar/PlaceSafepoints.cpp index ee69b5af68b..a3e759f0f3b 100644 --- a/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -91,19 +91,21 @@ using namespace llvm; // Ignore oppurtunities to avoid placing safepoints on backedges, useful for // validation -static cl::opt AllBackedges("spp-all-backedges", cl::init(false)); +static cl::opt AllBackedges("spp-all-backedges", cl::Hidden, + cl::init(false)); /// If true, do not place backedge safepoints in counted loops. -static cl::opt SkipCounted("spp-counted", cl::init(true)); +static cl::opt SkipCounted("spp-counted", cl::Hidden, cl::init(true)); // If true, split the backedge of a loop when placing the safepoint, otherwise // split the latch block itself. Both are useful to support for // experimentation, but in practice, it looks like splitting the backedge // optimizes better. -static cl::opt SplitBackedge("spp-split-backedge", cl::init(false)); +static cl::opt SplitBackedge("spp-split-backedge", cl::Hidden, + cl::init(false)); // Print tracing output -static cl::opt TraceLSP("spp-trace", cl::init(false)); +static cl::opt TraceLSP("spp-trace", cl::Hidden, cl::init(false)); namespace { @@ -140,9 +142,9 @@ struct PlaceBackedgeSafepointsImpl : public LoopPass { }; } -static cl::opt NoEntry("spp-no-entry", cl::init(false)); -static cl::opt NoCall("spp-no-call", cl::init(false)); -static cl::opt NoBackedge("spp-no-backedge", cl::init(false)); +static cl::opt NoEntry("spp-no-entry", cl::Hidden, cl::init(false)); +static cl::opt NoCall("spp-no-call", cl::Hidden, cl::init(false)); +static cl::opt NoBackedge("spp-no-backedge", cl::Hidden, cl::init(false)); namespace { struct PlaceSafepoints : public ModulePass {