From 11eecd635c29dae2851728d293f542bf5b1e87af Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 13 Mar 2008 01:21:31 +0000 Subject: [PATCH] Change PMStack::push to accept a PMDataManager* instead of a Pass*. PMDataManager* is what it actually holds, so this makes it clearer. llvm-svn: 48314 --- llvm/include/llvm/Pass.h | 2 +- llvm/lib/VMCore/PassManager.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h index 955d9a009cc3..896839effc9e 100644 --- a/llvm/include/llvm/Pass.h +++ b/llvm/include/llvm/Pass.h @@ -387,7 +387,7 @@ public: void pop(); inline PMDataManager *top() { return S.back(); } - void push(Pass *P); + void push(PMDataManager *PM); inline bool empty() { return S.empty(); } void dump(); diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp index bef1171bd0e4..275e0aea3fe9 100644 --- a/llvm/lib/VMCore/PassManager.cpp +++ b/llvm/lib/VMCore/PassManager.cpp @@ -1395,10 +1395,9 @@ void PMStack::pop() { } // Push PM on the stack and set its top level manager. -void PMStack::push(Pass *P) { +void PMStack::push(PMDataManager *PM) { PMDataManager *Top = NULL; - PMDataManager *PM = dynamic_cast(P); assert (PM && "Unable to push. Pass Manager expected"); if (this->empty()) {