[llvm-commits] [llvm] r55685 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Evan Cheng
evan.cheng at apple.com
Tue Sep 2 18:04:47 PDT 2008
Author: evancheng
Date: Tue Sep 2 20:04:47 2008
New Revision: 55685
URL: http://llvm.org/viewvc/llvm-project?rev=55685&view=rev
Log:
Unbreak fast isel.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=55685&r1=55684&r2=55685&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Tue Sep 2 20:04:47 2008
@@ -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 @@
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,
More information about the llvm-commits
mailing list