summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-08-02 23:36:06 +0000
committerMatthias Braun <matze@braunis.de>2016-08-02 23:36:06 +0000
commit9dbdc1852336e6d2f359bbed0c2ec3d20d03a985 (patch)
tree1030bf87b259cf7f08ba34192b75f8e991d676d5
parent4babac89cc8a714ed9928ddf8603cf5db982b42f (diff)
downloadbcm5719-llvm-9dbdc1852336e6d2f359bbed0c2ec3d20d03a985.tar.gz
bcm5719-llvm-9dbdc1852336e6d2f359bbed0c2ec3d20d03a985.zip
CommandFlags.h/llc: Move StopAfter/StartBefore options to llc.
Move those two options to llc: The options in CommandFlags.h are shared by dsymutil, gold, llc, llvm-dwp, llvm-lto, llvm-mc, lto, opt. -stop-after/-start-after only affect codegen passes however only gold and llc actually create codegen passes and I believe these flags to be only useful for users of llc. For the other tools they are just highly confusing: -stop-after claims to "Stop compilation after a specific pass" which is not true in the context of the "opt" tool. Differential Revision: https://reviews.llvm.org/D23050 llvm-svn: 277551
-rw-r--r--llvm/include/llvm/CodeGen/CommandFlags.h9
-rw-r--r--llvm/tools/llc/llc.cpp8
2 files changed, 8 insertions, 9 deletions
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.h b/llvm/include/llvm/CodeGen/CommandFlags.h
index 6376c06768b..7c1dc6f7644 100644
--- a/llvm/include/llvm/CodeGen/CommandFlags.h
+++ b/llvm/include/llvm/CodeGen/CommandFlags.h
@@ -221,15 +221,6 @@ UseCtors("use-ctors",
cl::desc("Use .ctors instead of .init_array."),
cl::init(false));
-cl::opt<std::string> StopAfter("stop-after",
- cl::desc("Stop compilation after a specific pass"),
- cl::value_desc("pass-name"),
- cl::init(""));
-cl::opt<std::string> StartAfter("start-after",
- cl::desc("Resume compilation after a specific pass"),
- cl::value_desc("pass-name"),
- cl::init(""));
-
cl::opt<bool> DataSections("data-sections",
cl::desc("Emit data into separate sections"),
cl::init(false));
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 9b6086ad4ea..250d2765104 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -118,6 +118,14 @@ static cl::opt<bool> DiscardValueNames(
cl::desc("Discard names from Value (other than GlobalValue)."),
cl::init(false), cl::Hidden);
+static cl::opt<std::string> StopAfter("stop-after",
+ cl::desc("Stop compilation after a specific pass"),
+ cl::value_desc("pass-name"), cl::init(""));
+
+static cl::opt<std::string> StartAfter("start-after",
+ cl::desc("Resume compilation after a specific pass"),
+ cl::value_desc("pass-name"), cl::init(""));
+
namespace {
static ManagedStatic<std::vector<std::string>> RunPassNames;
OpenPOWER on IntegriCloud