X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FAnalysis%2FPostDominators.h;h=0f7e2b88d2d70a68bd0d7dabc79f284ef0a7590b;hb=6ca71e23741ad9f0d9324b8766177e4773c7815e;hp=9ec47a30644366efe02944c7794fd8784674aedb;hpb=56e1394c8861ecdc551815ae875d2c3db2fa9cdb;p=oota-llvm.git diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 9ec47a30644..0f7e2b88d2d 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -19,7 +19,7 @@ namespace llvm { /// PostDominatorTree Class - Concrete subclass of DominatorTree that is used to -/// compute the a post-dominator tree. +/// compute the post-dominator tree. /// struct PostDominatorTree : public FunctionPass { static char ID; // Pass identification, replacement for typeid @@ -30,11 +30,11 @@ struct PostDominatorTree : public FunctionPass { DT = new DominatorTreeBase(true); } - ~PostDominatorTree(); + ~PostDominatorTree() override; - virtual bool runOnFunction(Function &F); + bool runOnFunction(Function &F) override; - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); } @@ -85,11 +85,11 @@ struct PostDominatorTree : public FunctionPass { DT->getDescendants(R, Result); } - virtual void releaseMemory() { + void releaseMemory() override { DT->releaseMemory(); } - virtual void print(raw_ostream &OS, const Module*) const; + void print(raw_ostream &OS, const Module*) const override; }; FunctionPass* createPostDomTree();