mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Initialize SparcInstrInfo before SparcTargetLowering.
The TargetLowering construction needs to use a valid TargetRegisterInfo instance. llvm-svn: 156146
This commit is contained in:
parent
8696a6109b
commit
aeb874991d
@ -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