mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix a problem where lib/Target/TargetInstrInfo.h would include and use
a header file from libcodegen. This violates a layering order: codegen depends on target, not the other way around. The fix to this is to split TII into two classes, TII and TargetInstrInfoImpl, which defines stuff that depends on libcodegen. It is defined in libcodegen, where the base is not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -38,7 +38,7 @@ const MachineInstrBuilder &AddDefaultCC(const MachineInstrBuilder &MIB) {
|
||||
}
|
||||
|
||||
ARMInstrInfo::ARMInstrInfo(const ARMSubtarget &STI)
|
||||
: TargetInstrInfo(ARMInsts, array_lengthof(ARMInsts)),
|
||||
: TargetInstrInfoImpl(ARMInsts, array_lengthof(ARMInsts)),
|
||||
RI(*this, STI) {
|
||||
}
|
||||
|
||||
|
@@ -125,7 +125,7 @@ namespace ARMII {
|
||||
};
|
||||
}
|
||||
|
||||
class ARMInstrInfo : public TargetInstrInfo {
|
||||
class ARMInstrInfo : public TargetInstrInfoImpl {
|
||||
const ARMRegisterInfo RI;
|
||||
public:
|
||||
ARMInstrInfo(const ARMSubtarget &STI);
|
||||
|
Reference in New Issue
Block a user