diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-03 01:04:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-03 01:04:47 +0000 |
commit | 88e3041ca61eeaebbbd6c68a1b37209983b4c765 (patch) | |
tree | a0ce7efd4d41027b9e9cf3dafa86cf72bc822c43 | |
parent | e925ccc553e95cf348455b4ba1dca1fd5981f5bb (diff) |
Unbreak fast isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 5b825c2bdd..ca127d312c 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -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, |