mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Adjust to change in TII ctor arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
SparcV8InstrInfo::SparcV8InstrInfo()
|
SparcV8InstrInfo::SparcV8InstrInfo()
|
||||||
: TargetInstrInfo(SparcV8Insts,
|
: TargetInstrInfo(SparcV8Insts, sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0])){
|
||||||
sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
SparcV8InstrInfo::SparcV8InstrInfo()
|
SparcV8InstrInfo::SparcV8InstrInfo()
|
||||||
: TargetInstrInfo(SparcV8Insts,
|
: TargetInstrInfo(SparcV8Insts, sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0])){
|
||||||
sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -416,12 +416,8 @@ InitializeMaxConstantsTable()
|
|||||||
// default to member functions in base class TargetInstrInfo.
|
// default to member functions in base class TargetInstrInfo.
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
/*ctor*/
|
|
||||||
SparcV9InstrInfo::SparcV9InstrInfo()
|
SparcV9InstrInfo::SparcV9InstrInfo()
|
||||||
: TargetInstrInfo(SparcV9MachineInstrDesc,
|
: TargetInstrInfo(SparcV9MachineInstrDesc, V9::NUM_TOTAL_OPCODES) {
|
||||||
/*descSize = */ V9::NUM_TOTAL_OPCODES,
|
|
||||||
/*numRealOpCodes = */ V9::NUM_REAL_OPCODES)
|
|
||||||
{
|
|
||||||
InitializeMaxConstantsTable();
|
InitializeMaxConstantsTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,9 +24,8 @@ namespace llvm {
|
|||||||
const TargetInstrDescriptor* TargetInstrDescriptors = 0;
|
const TargetInstrDescriptor* TargetInstrDescriptors = 0;
|
||||||
|
|
||||||
TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
|
TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
|
||||||
unsigned DescSize,
|
unsigned numOpcodes)
|
||||||
unsigned NumRealOpCodes)
|
: desc(Desc), NumOpcodes(numOpcodes) {
|
||||||
: 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
|
||||||
&& "TargetMachine data structure corrupt; maybe you tried to create another TargetMachine? (only one may exist in a program)");
|
&& "TargetMachine data structure corrupt; maybe you tried to create another TargetMachine? (only one may exist in a program)");
|
||||||
|
@@ -14,13 +14,11 @@
|
|||||||
#include "X86InstrInfo.h"
|
#include "X86InstrInfo.h"
|
||||||
#include "X86.h"
|
#include "X86.h"
|
||||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||||
|
|
||||||
#include "X86GenInstrInfo.inc"
|
#include "X86GenInstrInfo.inc"
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
X86InstrInfo::X86InstrInfo()
|
X86InstrInfo::X86InstrInfo()
|
||||||
: TargetInstrInfo(X86Insts, sizeof(X86Insts)/sizeof(X86Insts[0]), 0) {
|
: TargetInstrInfo(X86Insts, sizeof(X86Insts)/sizeof(X86Insts[0])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user