mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Adjust to new TM interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e25738cab6
commit
143e0ea43d
@ -464,7 +464,7 @@ void V8Printer::printBaseOffsetPair (const MachineInstr *MI, int i) {
|
||||
///
|
||||
void V8Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||
unsigned Opcode = MI->getOpcode();
|
||||
const TargetInstrInfo &TII = TM.getInstrInfo();
|
||||
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
||||
const TargetInstrDescriptor &Desc = TII.get(Opcode);
|
||||
O << Desc.Name << " ";
|
||||
|
||||
|
@ -31,8 +31,8 @@ class SparcV8TargetMachine : public TargetMachine {
|
||||
public:
|
||||
SparcV8TargetMachine(const Module &M, IntrinsicLowering *IL);
|
||||
|
||||
virtual const SparcV8InstrInfo &getInstrInfo() const { return InstrInfo; }
|
||||
virtual const TargetFrameInfo &getFrameInfo() const { return FrameInfo; }
|
||||
virtual const SparcV8InstrInfo *getInstrInfo() const { return &InstrInfo; }
|
||||
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
||||
virtual const MRegisterInfo *getRegisterInfo() const {
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
@ -40,9 +40,6 @@ public:
|
||||
return &JITInfo;
|
||||
}
|
||||
|
||||
virtual const TargetSchedInfo &getSchedInfo() const { abort(); }
|
||||
virtual const TargetRegInfo &getRegInfo() const { abort(); }
|
||||
|
||||
/// addPassesToEmitMachineCode - Add passes to the specified pass manager to
|
||||
/// get machine code emitted. This uses a MachineCodeEmitter object to handle
|
||||
/// actually outputting the machine code and resolving things like the address
|
||||
|
@ -464,7 +464,7 @@ void V8Printer::printBaseOffsetPair (const MachineInstr *MI, int i) {
|
||||
///
|
||||
void V8Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||
unsigned Opcode = MI->getOpcode();
|
||||
const TargetInstrInfo &TII = TM.getInstrInfo();
|
||||
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
||||
const TargetInstrDescriptor &Desc = TII.get(Opcode);
|
||||
O << Desc.Name << " ";
|
||||
|
||||
|
@ -31,8 +31,8 @@ class SparcV8TargetMachine : public TargetMachine {
|
||||
public:
|
||||
SparcV8TargetMachine(const Module &M, IntrinsicLowering *IL);
|
||||
|
||||
virtual const SparcV8InstrInfo &getInstrInfo() const { return InstrInfo; }
|
||||
virtual const TargetFrameInfo &getFrameInfo() const { return FrameInfo; }
|
||||
virtual const SparcV8InstrInfo *getInstrInfo() const { return &InstrInfo; }
|
||||
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
||||
virtual const MRegisterInfo *getRegisterInfo() const {
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
@ -40,9 +40,6 @@ public:
|
||||
return &JITInfo;
|
||||
}
|
||||
|
||||
virtual const TargetSchedInfo &getSchedInfo() const { abort(); }
|
||||
virtual const TargetRegInfo &getRegInfo() const { abort(); }
|
||||
|
||||
/// addPassesToEmitMachineCode - Add passes to the specified pass manager to
|
||||
/// get machine code emitted. This uses a MachineCodeEmitter object to handle
|
||||
/// actually outputting the machine code and resolving things like the address
|
||||
|
Loading…
Reference in New Issue
Block a user