mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Remove a virtual function from TargetMachine. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b23c2d9b2c
commit
9920f561c3
@ -101,7 +101,7 @@ public:
|
|||||||
virtual const TargetSubtargetInfo *getSubtargetImpl() const {
|
virtual const TargetSubtargetInfo *getSubtargetImpl() const {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
virtual TargetSubtargetInfo *getSubtargetImpl() {
|
TargetSubtargetInfo *getSubtargetImpl() {
|
||||||
const TargetMachine *TM = this;
|
const TargetMachine *TM = this;
|
||||||
return const_cast<TargetSubtargetInfo *>(TM->getSubtargetImpl());
|
return const_cast<TargetSubtargetInfo *>(TM->getSubtargetImpl());
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,6 @@ public:
|
|||||||
bool isLittle);
|
bool isLittle);
|
||||||
|
|
||||||
const ARMSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
const ARMSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
||||||
ARMSubtarget *getSubtargetImpl() override { return &Subtarget; }
|
|
||||||
|
|
||||||
/// \brief Register ARM analysis passes with a pass manager.
|
/// \brief Register ARM analysis passes with a pass manager.
|
||||||
void addAnalysisPasses(PassManagerBase &PM) override;
|
void addAnalysisPasses(PassManagerBase &PM) override;
|
||||||
|
@ -44,10 +44,8 @@ public:
|
|||||||
return Subtarget;
|
return Subtarget;
|
||||||
return &DefaultSubtarget;
|
return &DefaultSubtarget;
|
||||||
}
|
}
|
||||||
MipsSubtarget *getSubtargetImpl() override {
|
MipsSubtarget *getSubtargetImpl() {
|
||||||
if (Subtarget)
|
return static_cast<MipsSubtarget *>(TargetMachine::getSubtargetImpl());
|
||||||
return Subtarget;
|
|
||||||
return &DefaultSubtarget;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Reset the subtarget for the Mips target.
|
/// \brief Reset the subtarget for the Mips target.
|
||||||
|
@ -33,7 +33,6 @@ public:
|
|||||||
CodeGenOpt::Level OL, bool is64Bit);
|
CodeGenOpt::Level OL, bool is64Bit);
|
||||||
|
|
||||||
const PPCSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
const PPCSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
||||||
PPCSubtarget *getSubtargetImpl() override { return &Subtarget; }
|
|
||||||
|
|
||||||
// Pass Pipeline Configuration
|
// Pass Pipeline Configuration
|
||||||
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
||||||
|
@ -29,7 +29,10 @@ public:
|
|||||||
CodeGenOpt::Level OL, bool is64bit);
|
CodeGenOpt::Level OL, bool is64bit);
|
||||||
|
|
||||||
const SparcSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
const SparcSubtarget *getSubtargetImpl() const override { return &Subtarget; }
|
||||||
SparcSubtarget *getSubtargetImpl() override { return &Subtarget; }
|
|
||||||
|
SparcSubtarget *getSubtargetImpl() {
|
||||||
|
return static_cast<SparcSubtarget *>(TargetMachine::getSubtargetImpl());
|
||||||
|
}
|
||||||
|
|
||||||
// Pass Pipeline Configuration
|
// Pass Pipeline Configuration
|
||||||
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
||||||
|
@ -32,7 +32,10 @@ public:
|
|||||||
Reloc::Model RM, CodeModel::Model CM,
|
Reloc::Model RM, CodeModel::Model CM,
|
||||||
CodeGenOpt::Level OL);
|
CodeGenOpt::Level OL);
|
||||||
const X86Subtarget *getSubtargetImpl() const override { return &Subtarget; }
|
const X86Subtarget *getSubtargetImpl() const override { return &Subtarget; }
|
||||||
X86Subtarget *getSubtargetImpl() override { return &Subtarget; }
|
|
||||||
|
X86Subtarget *getSubtargetImpl() {
|
||||||
|
return static_cast<X86Subtarget *>(TargetMachine::getSubtargetImpl());
|
||||||
|
}
|
||||||
|
|
||||||
/// \brief Register X86 analysis passes with a pass manager.
|
/// \brief Register X86 analysis passes with a pass manager.
|
||||||
void addAnalysisPasses(PassManagerBase &PM) override;
|
void addAnalysisPasses(PassManagerBase &PM) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user