diff options
author | Matthias Braun <matze@braunis.de> | 2016-09-23 21:46:02 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-09-23 21:46:02 +0000 |
commit | 729c9890839baef184d4901bc3b8e226e719cd01 (patch) | |
tree | 90a67cdd756ad3a513fe7288884b188c25dc69e3 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 2d3a26ffb98a65553c33935656bf6bc95953f1a4 (diff) | |
download | bcm5719-llvm-729c9890839baef184d4901bc3b8e226e719cd01.tar.gz bcm5719-llvm-729c9890839baef184d4901bc3b8e226e719cd01.zip |
llc: Add -start-before/-stop-before options
Differential Revision: https://reviews.llvm.org/D23089
llvm-svn: 282302
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 782a1d951b5..afe09581c08 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -260,8 +260,7 @@ TargetPassConfig::~TargetPassConfig() { // Out of line constructor provides default values for pass options and // registers all common codegen passes. TargetPassConfig::TargetPassConfig(TargetMachine *tm, PassManagerBase &pm) - : ImmutablePass(ID), PM(&pm), StartBefore(nullptr), StartAfter(nullptr), - StopAfter(nullptr), Started(true), Stopped(false), + : ImmutablePass(ID), PM(&pm), Started(true), Stopped(false), AddingMachinePasses(false), TM(tm), Impl(nullptr), Initialized(false), DisableVerify(false), EnableTailMerge(true) { @@ -355,6 +354,8 @@ void TargetPassConfig::addPass(Pass *P, bool verifyAfter, bool printAfter) { if (StartBefore == PassID) Started = true; + if (StopBefore == PassID) + Stopped = true; if (Started && !Stopped) { std::string Banner; // Construct banner message before PM->add() as that may delete the pass. |