mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
MachineInstrInfo doesn't need a TargetMachine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d020801aea
commit
047bbafb99
@ -324,8 +324,8 @@ InitializeMaxConstantsTable()
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
/*ctor*/
|
/*ctor*/
|
||||||
UltraSparcInstrInfo::UltraSparcInstrInfo(const TargetMachine& tgt)
|
UltraSparcInstrInfo::UltraSparcInstrInfo()
|
||||||
: MachineInstrInfo(tgt, SparcMachineInstrDesc,
|
: MachineInstrInfo(SparcMachineInstrDesc,
|
||||||
/*descSize = */ NUM_TOTAL_OPCODES,
|
/*descSize = */ NUM_TOTAL_OPCODES,
|
||||||
/*numRealOpCodes = */ NUM_REAL_OPCODES)
|
/*numRealOpCodes = */ NUM_REAL_OPCODES)
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@ extern const MachineInstrDescriptor SparcMachineInstrDesc[];
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
struct UltraSparcInstrInfo : public MachineInstrInfo {
|
struct UltraSparcInstrInfo : public MachineInstrInfo {
|
||||||
UltraSparcInstrInfo(const TargetMachine& tgt);
|
UltraSparcInstrInfo();
|
||||||
|
|
||||||
//
|
//
|
||||||
// All immediate constants are in position 1 except the
|
// All immediate constants are in position 1 except the
|
||||||
|
@ -126,7 +126,6 @@ UltraSparcFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo,
|
|||||||
|
|
||||||
UltraSparc::UltraSparc()
|
UltraSparc::UltraSparc()
|
||||||
: TargetMachine("UltraSparc-Native"),
|
: TargetMachine("UltraSparc-Native"),
|
||||||
instrInfo(*this),
|
|
||||||
schedInfo(*this),
|
schedInfo(*this),
|
||||||
regInfo(*this),
|
regInfo(*this),
|
||||||
frameInfo(*this),
|
frameInfo(*this),
|
||||||
|
@ -15,11 +15,10 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
MachineInstrInfo::MachineInstrInfo(const TargetMachine& tgt,
|
MachineInstrInfo::MachineInstrInfo(const MachineInstrDescriptor* Desc,
|
||||||
const MachineInstrDescriptor* Desc,
|
|
||||||
unsigned DescSize,
|
unsigned DescSize,
|
||||||
unsigned NumRealOpCodes)
|
unsigned NumRealOpCodes)
|
||||||
: target(tgt), desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
|
: desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
|
||||||
// FIXME: TargetInstrDescriptors should not be global
|
// FIXME: TargetInstrDescriptors should not be global
|
||||||
assert(TargetInstrDescriptors == NULL && desc != NULL);
|
assert(TargetInstrDescriptors == NULL && desc != NULL);
|
||||||
TargetInstrDescriptors = desc; // initialize global variable
|
TargetInstrDescriptors = desc; // initialize global variable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user