Fixing a bunch of -Woverloaded-virtual warnings due to hiding getSubtargetImpl from the base class. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2014-09-18 13:27:14 +00:00
parent 6c0e053dc9
commit cf5bea8e4a
12 changed files with 14 additions and 0 deletions

View File

@ -31,6 +31,7 @@ public:
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL, bool IsLittleEndian);
using LLVMTargetMachine::getSubtargetImpl;
const AArch64Subtarget *getSubtargetImpl() const override {
return &Subtarget;
}

View File

@ -32,6 +32,7 @@ public:
CodeGenOpt::Level OL,
bool isLittle);
using LLVMTargetMachine::getSubtargetImpl;
const ARMSubtarget *getSubtargetImpl() const override { return &Subtarget; }
/// \brief Register ARM analysis passes with a pass manager.

View File

@ -31,6 +31,7 @@ public:
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
using LLVMTargetMachine::getSubtargetImpl;
const HexagonSubtarget *getSubtargetImpl() const override {
return &Subtarget;
}

View File

@ -32,6 +32,7 @@ public:
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
using LLVMTargetMachine::getSubtargetImpl;
const MSP430Subtarget *getSubtargetImpl() const override {
return &Subtarget;
}

View File

@ -39,6 +39,7 @@ public:
void addAnalysisPasses(PassManagerBase &PM) override;
using LLVMTargetMachine::getSubtargetImpl;
const MipsSubtarget *getSubtargetImpl() const override {
if (Subtarget)
return Subtarget;

View File

@ -35,6 +35,7 @@ public:
const TargetOptions &Options, Reloc::Model RM,
CodeModel::Model CM, CodeGenOpt::Level OP, bool is64bit);
using LLVMTargetMachine::getSubtargetImpl;
const NVPTXSubtarget *getSubtargetImpl() const override { return &Subtarget; }
ManagedStringPool *getManagedStrPool() const {

View File

@ -32,6 +32,7 @@ public:
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
using LLVMTargetMachine::getSubtargetImpl;
const PPCSubtarget *getSubtargetImpl() const override { return &Subtarget; }
// Pass Pipeline Configuration

View File

@ -33,6 +33,8 @@ public:
StringRef CPU, TargetOptions Options, Reloc::Model RM,
CodeModel::Model CM, CodeGenOpt::Level OL);
~AMDGPUTargetMachine();
using LLVMTargetMachine::getSubtargetImpl;
const AMDGPUSubtarget *getSubtargetImpl() const override {
return &Subtarget;
}

View File

@ -28,6 +28,7 @@ public:
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL, bool is64bit);
using LLVMTargetMachine::getSubtargetImpl;
const SparcSubtarget *getSubtargetImpl() const override { return &Subtarget; }
// Pass Pipeline Configuration

View File

@ -32,6 +32,7 @@ public:
CodeGenOpt::Level OL);
// Override TargetMachine.
using LLVMTargetMachine::getSubtargetImpl;
const SystemZSubtarget *getSubtargetImpl() const override {
return &Subtarget;
}

View File

@ -31,6 +31,8 @@ public:
StringRef CPU, StringRef FS, const TargetOptions &Options,
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
using LLVMTargetMachine::getSubtargetImpl;
const X86Subtarget *getSubtargetImpl() const override { return &Subtarget; }
/// \brief Register X86 analysis passes with a pass manager.

View File

@ -27,6 +27,7 @@ public:
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
using LLVMTargetMachine::getSubtargetImpl;
const XCoreSubtarget *getSubtargetImpl() const override { return &Subtarget; }
// Pass Pipeline Configuration