mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Initialize SparcInstrInfo before SparcTargetLowering.
The TargetLowering construction needs to use a valid TargetRegisterInfo instance. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89e38f8721
commit
ed277f3eeb
@ -34,7 +34,8 @@ SparcTargetMachine::SparcTargetMachine(const Target &T, StringRef TT,
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, is64bit),
|
||||
DataLayout(Subtarget.getDataLayout()),
|
||||
TLInfo(*this), TSInfo(*this), InstrInfo(Subtarget),
|
||||
InstrInfo(Subtarget),
|
||||
TLInfo(*this), TSInfo(*this),
|
||||
FrameLowering(Subtarget) {
|
||||
}
|
||||
|
||||
|
@ -28,9 +28,9 @@ namespace llvm {
|
||||
class SparcTargetMachine : public LLVMTargetMachine {
|
||||
SparcSubtarget Subtarget;
|
||||
const TargetData DataLayout; // Calculates type size & alignment
|
||||
SparcInstrInfo InstrInfo;
|
||||
SparcTargetLowering TLInfo;
|
||||
SparcSelectionDAGInfo TSInfo;
|
||||
SparcInstrInfo InstrInfo;
|
||||
SparcFrameLowering FrameLowering;
|
||||
public:
|
||||
SparcTargetMachine(const Target &T, StringRef TT,
|
||||
|
Loading…
Reference in New Issue
Block a user