diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-08 08:27:28 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-08 08:27:28 +0000 |
commit | e56917c0caad30fe9c6225968c0b47673fd2e7ad (patch) | |
tree | dfce5a1755ece871dce2f4a2941f893ab5a08542 /llvm/tools/opt/PrintSCC.cpp | |
parent | b51ff603eae8cd286d6e66d52e66261010d6ab70 (diff) | |
download | bcm5719-llvm-e56917c0caad30fe9c6225968c0b47673fd2e7ad.tar.gz bcm5719-llvm-e56917c0caad30fe9c6225968c0b47673fd2e7ad.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203345
Diffstat (limited to 'llvm/tools/opt/PrintSCC.cpp')
-rw-r--r-- | llvm/tools/opt/PrintSCC.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/opt/PrintSCC.cpp b/llvm/tools/opt/PrintSCC.cpp index f2e77f0cef7..cbc0a559960 100644 --- a/llvm/tools/opt/PrintSCC.cpp +++ b/llvm/tools/opt/PrintSCC.cpp @@ -37,11 +37,11 @@ namespace { struct CFGSCC : public FunctionPass { static char ID; // Pass identification, replacement for typeid CFGSCC() : FunctionPass(ID) {} - bool runOnFunction(Function& func); + bool runOnFunction(Function& func) override; - void print(raw_ostream &O, const Module* = 0) const { } + void print(raw_ostream &O, const Module* = 0) const override { } - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); } }; @@ -51,12 +51,12 @@ namespace { CallGraphSCC() : ModulePass(ID) {} // run - Print out SCCs in the call graph for the specified module. - bool runOnModule(Module &M); + bool runOnModule(Module &M) override; - void print(raw_ostream &O, const Module* = 0) const { } + void print(raw_ostream &O, const Module* = 0) const override { } // getAnalysisUsage - This pass requires the CallGraph. - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); AU.addRequired<CallGraphWrapperPass>(); } |