Unbreak fast isel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-09-03 01:04:47 +00:00
parent e925ccc553
commit 88e3041ca6

View File

@ -14,8 +14,9 @@
//===----------------------------------------------------------------------===//
#include "X86.h"
#include "X86RegisterInfo.h"
#include "X86ISelLowering.h"
#include "X86RegisterInfo.h"
#include "X86Subtarget.h"
#include "X86TargetMachine.h"
#include "llvm/CodeGen/FastISel.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
@ -28,7 +29,9 @@ class X86FastISel : public FastISel {
const X86Subtarget *Subtarget;
public:
explicit X86FastISel(MachineFunction &mf) : FastISel(mf) {}
explicit X86FastISel(MachineFunction &mf) : FastISel(mf) {
Subtarget = &TM.getSubtarget<X86Subtarget>();
}
virtual bool
TargetSelectInstruction(Instruction *I,