summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/PostDominators.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-03-05 07:30:04 +0000
committerCraig Topper <craig.topper@gmail.com>2014-03-05 07:30:04 +0000
commitc37e6c073436be77e90ef640c0e6627200ba19f7 (patch)
treeebcd38a39f18ed144d0818a795f1b2a34925aebb /include/llvm/Analysis/PostDominators.h
parenta6ace00520a9df552ecfec6557f830ef805bea37 (diff)
downloadllvm-c37e6c073436be77e90ef640c0e6627200ba19f7.tar.gz
llvm-c37e6c073436be77e90ef640c0e6627200ba19f7.tar.bz2
llvm-c37e6c073436be77e90ef640c0e6627200ba19f7.tar.xz
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
-rw-r--r--include/llvm/Analysis/PostDominators.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index 9ec47a3064..d330755a08 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/include/llvm/Analysis/PostDominators.h
@@ -32,9 +32,9 @@ struct PostDominatorTree : public FunctionPass {
~PostDominatorTree();
- 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();