diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:30:04 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 07:30:04 +0000 |
commit | c37e6c073436be77e90ef640c0e6627200ba19f7 (patch) | |
tree | ebcd38a39f18ed144d0818a795f1b2a34925aebb /lib/Analysis/InstCount.cpp | |
parent | a6ace00520a9df552ecfec6557f830ef805bea37 (diff) | |
download | llvm-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 'lib/Analysis/InstCount.cpp')
-rw-r--r-- | lib/Analysis/InstCount.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index 75a49eb90a..876d49b1f2 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -55,12 +55,12 @@ namespace { initializeInstCountPass(*PassRegistry::getPassRegistry()); } - virtual bool runOnFunction(Function &F); + bool runOnFunction(Function &F) override; - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); } - virtual void print(raw_ostream &O, const Module *M) const {} + void print(raw_ostream &O, const Module *M) const override {} }; } |