diff options
author | Andrew Trick <atrick@apple.com> | 2011-08-27 02:11:03 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-08-27 02:11:03 +0000 |
commit | b84619223051fd965cc64e70c8f6b70f7ae6ae85 (patch) | |
tree | fe926c6a4345b9fb8e658a468fc63dc5924ffdfe /lib/Analysis/IPA | |
parent | 0005cc7a0a4834ff8915546855864eac22b5f7ea (diff) | |
download | external_llvm-b84619223051fd965cc64e70c8f6b70f7ae6ae85.zip external_llvm-b84619223051fd965cc64e70c8f6b70f7ae6ae85.tar.gz external_llvm-b84619223051fd965cc64e70c8f6b70f7ae6ae85.tar.bz2 |
Fix PassManager stack depths.
Patch by Xiaoyi Guo!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r-- | lib/Analysis/IPA/CallGraphSCCPass.cpp | 6 |
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(); |