From c2f12ab5e5258a949c0cfff074bf57fe0c08d4e5 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48314 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Pass.h | 2 +- lib/VMCore/PassManager.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 955d9a009cc..896839effc9 100644 --- a/include/llvm/Pass.h +++ b/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/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index bef1171bd0e..275e0aea3fe 100644 --- a/lib/VMCore/PassManager.cpp +++ b/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()) { -- 2.34.1