[C++11] Mark more classes in the X86 target as 'final'.

llvm-svn: 205166
This commit is contained in:
Craig Topper 2014-03-31 06:53:13 +00:00
parent 26eec09d84
commit ec82847a64
6 changed files with 8 additions and 8 deletions

View File

@ -19,8 +19,8 @@
namespace llvm {
class MCOperand;
class X86ATTInstPrinter : public MCInstPrinter {
class X86ATTInstPrinter final : public MCInstPrinter {
public:
X86ATTInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
const MCRegisterInfo &MRI)

View File

@ -20,8 +20,8 @@
namespace llvm {
class MCOperand;
class X86IntelInstPrinter : public MCInstPrinter {
class X86IntelInstPrinter final : public MCInstPrinter {
public:
X86IntelInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
const MCRegisterInfo &MRI)

View File

@ -128,7 +128,7 @@ inline static bool isMem(const MachineInstr *MI, unsigned Op) {
isLeaMem(MI, Op);
}
class X86InstrInfo : public X86GenInstrInfo {
class X86InstrInfo final : public X86GenInstrInfo {
X86TargetMachine &TM;
const X86RegisterInfo RI;

View File

@ -24,7 +24,7 @@ namespace llvm {
class TargetInstrInfo;
class X86TargetMachine;
class X86RegisterInfo : public X86GenRegisterInfo {
class X86RegisterInfo final : public X86GenRegisterInfo {
public:
X86TargetMachine &TM;

View File

@ -39,7 +39,7 @@ enum Style {
};
}
class X86Subtarget : public X86GenSubtargetInfo {
class X86Subtarget final : public X86GenSubtargetInfo {
protected:
enum X86SSEEnum {
NoMMXSSE, MMX, SSE1, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX, AVX2, AVX512F

View File

@ -27,7 +27,7 @@ namespace llvm {
class StringRef;
class X86TargetMachine : public LLVMTargetMachine {
class X86TargetMachine final : public LLVMTargetMachine {
virtual void anchor();
X86Subtarget Subtarget;
X86FrameLowering FrameLowering;