summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/IPA
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-08-29 17:07:00 +0000
committerAndrew Trick <atrick@apple.com>2011-08-29 17:07:00 +0000
commit0e122d1c2422285c872f68fc0ae1f7e5d2739572 (patch)
treee4dffa5d52e4da8ef5b8e9621647657a2abba1ba /lib/Analysis/IPA
parent05d71380181a874cbe70bd2c30fa5eb71eb0d661 (diff)
downloadexternal_llvm-0e122d1c2422285c872f68fc0ae1f7e5d2739572.zip
external_llvm-0e122d1c2422285c872f68fc0ae1f7e5d2739572.tar.gz
external_llvm-0e122d1c2422285c872f68fc0ae1f7e5d2739572.tar.bz2
Reapply r138695. Fix PassManager stack depths.
Patch by Xiaoyi Guo! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/CallGraphSCCPass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index b6f9f0b..963da75 100644
--- a/lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp
@@ -44,8 +44,8 @@ namespace {
class CGPassManager : public ModulePass, public PMDataManager {
public:
static char ID;
- explicit CGPassManager(int Depth)
- : ModulePass(ID), PMDataManager(Depth) { }
+ explicit CGPassManager()
+ : ModulePass(ID), PMDataManager() { }
/// run - Execute all of the passes scheduled for execution. Keep track of
/// whether any of the passes modifies the module, and if so, return true.
@@ -543,7 +543,7 @@ void CallGraphSCCPass::assignPassManager(PMStack &PMS,
PMDataManager *PMD = PMS.top();
// [1] Create new Call Graph Pass Manager
- CGP = new CGPassManager(PMD->getDepth() + 1);
+ CGP = new CGPassManager();
// [2] Set up new manager's top level manager
PMTopLevelManager *TPM = PMD->getTopLevelManager();