mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user