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:
@@ -25,7 +25,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
: TargetInstrInfo(X86Insts, array_lengthof(X86Insts)),
|
||||
: TargetInstrInfoImpl(X86Insts, array_lengthof(X86Insts)),
|
||||
TM(tm), RI(tm, *this) {
|
||||
}
|
||||
|
||||
|
@@ -222,7 +222,7 @@ namespace X86II {
|
||||
};
|
||||
}
|
||||
|
||||
class X86InstrInfo : public TargetInstrInfo {
|
||||
class X86InstrInfo : public TargetInstrInfoImpl {
|
||||
X86TargetMachine &TM;
|
||||
const X86RegisterInfo RI;
|
||||
mutable IndexedMap<const MachineInstr*, VirtReg2IndexFunctor> MachineInstrMap;
|
||||
|
Reference in New Issue
Block a user