Fix use-before-construction of X86TargetLowering.

llvm-svn: 170654
This commit is contained in:
Richard Smith 2012-12-20 04:04:17 +00:00
parent e7701ebfec
commit 15b1e3727b
2 changed files with 4 additions and 4 deletions

View File

@ -46,8 +46,8 @@ X86_32TargetMachine::X86_32TargetMachine(const Target &T, StringRef TT,
"e-p:32:32-f64:32:64-i64:32:64-f80:32:32-f128:128:128-"
"n8:16:32-S128"),
InstrInfo(*this),
TSInfo(*this),
TLInfo(*this),
TSInfo(*this),
JITInfo(*this),
STTI(&TLInfo), VTTI(&TLInfo) {
}
@ -63,8 +63,8 @@ X86_64TargetMachine::X86_64TargetMachine(const Target &T, StringRef TT,
DL("e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128-f128:128:128-"
"n8:16:32:64-S128"),
InstrInfo(*this),
TSInfo(*this),
TLInfo(*this),
TSInfo(*this),
JITInfo(*this),
STTI(&TLInfo), VTTI(&TLInfo){
}

View File

@ -78,8 +78,8 @@ class X86_32TargetMachine : public X86TargetMachine {
virtual void anchor();
const DataLayout DL; // Calculates type size & alignment
X86InstrInfo InstrInfo;
X86SelectionDAGInfo TSInfo;
X86TargetLowering TLInfo;
X86SelectionDAGInfo TSInfo;
X86JITInfo JITInfo;
ScalarTargetTransformImpl STTI;
X86VectorTargetTransformInfo VTTI;
@ -115,8 +115,8 @@ class X86_64TargetMachine : public X86TargetMachine {
virtual void anchor();
const DataLayout DL; // Calculates type size & alignment
X86InstrInfo InstrInfo;
X86SelectionDAGInfo TSInfo;
X86TargetLowering TLInfo;
X86SelectionDAGInfo TSInfo;
X86JITInfo JITInfo;
X86ScalarTargetTransformImpl STTI;
X86VectorTargetTransformInfo VTTI;