[Refactor] Simplify ScopPass interface

llvm-svn: 230899
This commit is contained in:
Johannes Doerfert 2015-03-01 18:43:50 +00:00
parent 909a3bf21d
commit 2495cfe01d
2 changed files with 1 additions and 7 deletions

View File

@ -49,12 +49,6 @@ protected:
///
virtual void getAnalysisUsage(AnalysisUsage &AU) const override;
public:
Scop &getCurScop() const {
assert(S && "Not on a Scop!");
return *S;
}
private:
bool runOnRegion(Region *R, RGPassManager &RGM) override;
void print(raw_ostream &OS, const Module *) const override;

View File

@ -444,7 +444,7 @@ bool Dependences::runOnScop(Scop &ScopVar) {
}
bool Dependences::isValidScattering(StatementToIslMapTy *NewScattering) {
Scop &S = getCurScop();
Scop &S = *this->S;
if (LegalityCheckDisabled)
return true;