diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-03-07 09:26:03 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-03-07 09:26:03 +0000 |
| commit | 4584cd54e3cd7025e609ccdf0ee6ded81233c0ce (patch) | |
| tree | 0551795d002894459b99709538ef6aea0e4c0b42 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
| parent | d2bbdcfc0d2340904141a3dbca502a3cf4e2e416 (diff) | |
| download | bcm5719-llvm-4584cd54e3cd7025e609ccdf0ee6ded81233c0ce.tar.gz bcm5719-llvm-4584cd54e3cd7025e609ccdf0ee6ded81233c0ce.zip | |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203220
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index cb4f8cbe866..9baf1ff0582 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -144,7 +144,7 @@ public: initializeTwoAddressInstructionPassPass(*PassRegistry::getPassRegistry()); } - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesCFG(); AU.addRequired<AliasAnalysis>(); AU.addPreserved<LiveVariables>(); @@ -156,7 +156,7 @@ public: } /// runOnMachineFunction - Pass entry point. - bool runOnMachineFunction(MachineFunction&); + bool runOnMachineFunction(MachineFunction&) override; }; } // end anonymous namespace |

