summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-03-07 09:26:03 +0000
committerCraig Topper <craig.topper@gmail.com>2014-03-07 09:26:03 +0000
commit9f998de8918c1dd5a8b8ec564af00107859898e0 (patch)
tree236ce73d227b8a00770e5e6d5516f5d551be8d80 /lib/CodeGen/BranchFolding.cpp
parent177c1ef30d6f789e7e780651dae5cc0929d73066 (diff)
downloadllvm-9f998de8918c1dd5a8b8ec564af00107859898e0.tar.gz
llvm-9f998de8918c1dd5a8b8ec564af00107859898e0.tar.bz2
llvm-9f998de8918c1dd5a8b8ec564af00107859898e0.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@203220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index f02e553178..fe8baeabc4 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -66,9 +66,9 @@ namespace {
static char ID;
explicit BranchFolderPass(): MachineFunctionPass(ID) {}
- virtual bool runOnMachineFunction(MachineFunction &MF);
+ bool runOnMachineFunction(MachineFunction &MF) override;
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<TargetPassConfig>();
MachineFunctionPass::getAnalysisUsage(AU);
}