diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-09 07:44:38 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-09 07:44:38 +0000 |
commit | 2d9361e325e2a99edd0522f37f4555bd59ef6ac3 (patch) | |
tree | 53ea1e2307ec115ec4c28f2410bfe031f1e81894 /llvm/lib/Target/X86/X86FixupLEAs.cpp | |
parent | 970714bcf9dc48211d1aeb58fb888435edac4229 (diff) | |
download | bcm5719-llvm-2d9361e325e2a99edd0522f37f4555bd59ef6ac3.tar.gz bcm5719-llvm-2d9361e325e2a99edd0522f37f4555bd59ef6ac3.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203378
Diffstat (limited to 'llvm/lib/Target/X86/X86FixupLEAs.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86FixupLEAs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FixupLEAs.cpp b/llvm/lib/Target/X86/X86FixupLEAs.cpp index 38a83517537..c2c234be8c8 100644 --- a/llvm/lib/Target/X86/X86FixupLEAs.cpp +++ b/llvm/lib/Target/X86/X86FixupLEAs.cpp @@ -39,7 +39,7 @@ namespace { /// where appropriate. bool processBasicBlock(MachineFunction &MF, MachineFunction::iterator MFI); - virtual const char *getPassName() const { return "X86 Atom LEA Fixup";} + const char *getPassName() const override { return "X86 Atom LEA Fixup";} /// \brief Given a machine register, look for the instruction /// which writes it in the current basic block. If found, @@ -80,7 +80,7 @@ namespace { /// \brief Loop over all of the basic blocks, /// replacing instructions by equivalent LEA instructions /// if needed and when possible. - virtual bool runOnMachineFunction(MachineFunction &MF); + bool runOnMachineFunction(MachineFunction &MF) override; private: MachineFunction *MF; |