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 | c83e68f7326f424876198514eb2ad89110f52c45 (patch) | |
tree | bfc2d328801ff1f8ec2206613c4e3f8e429a500a /tools/opt/GraphPrinters.cpp | |
parent | 838cb749dceb62a35d1966833f1a577cd61938ad (diff) | |
download | llvm-c83e68f7326f424876198514eb2ad89110f52c45.tar.gz llvm-c83e68f7326f424876198514eb2ad89110f52c45.tar.bz2 llvm-c83e68f7326f424876198514eb2ad89110f52c45.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@203345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/GraphPrinters.cpp')
-rw-r--r-- | tools/opt/GraphPrinters.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/GraphPrinters.cpp b/tools/opt/GraphPrinters.cpp index b299f4c362..640edfee41 100644 --- a/tools/opt/GraphPrinters.cpp +++ b/tools/opt/GraphPrinters.cpp @@ -29,12 +29,12 @@ namespace { static char ID; // Pass identification, replacement for typeid DomInfoPrinter() : FunctionPass(ID) {} - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); AU.addRequired<DominatorTreeWrapperPass>(); } - virtual bool runOnFunction(Function &F) { + bool runOnFunction(Function &F) override { getAnalysis<DominatorTreeWrapperPass>().dump(); return false; } |