mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
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
This commit is contained in:
parent
abf8892706
commit
11eecd635c
@ -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();
|
||||
|
@ -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<PMDataManager *>(P);
|
||||
assert (PM && "Unable to push. Pass Manager expected");
|
||||
|
||||
if (this->empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user