Implement the TargetFrameInfo interface
authorChris Lattner <sabre@nondot.org>
Sat, 28 Dec 2002 20:33:52 +0000 (20:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Dec 2002 20:33:52 +0000 (20:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5189 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.h

index 15b5d4950fbb2fa40c8ba5caf7e7f65385c56280..84907a3bf82cf48c62846de32b31bf444b2d9100 100644 (file)
@@ -9,21 +9,24 @@
 
 #include "llvm/Target/TargetMachine.h"
 #include "X86InstrInfo.h"
+#include "llvm/Target/MachineFrameInfo.h"
 
 class X86TargetMachine : public TargetMachine {
-  X86InstrInfo instrInfo;
+  X86InstrInfo InstrInfo;
+  TargetFrameInfo FrameInfo;
 public:
   X86TargetMachine(unsigned Configuration);
 
-  virtual const X86InstrInfo     &getInstrInfo() const { return instrInfo; }
+  virtual const X86InstrInfo     &getInstrInfo() const { return InstrInfo; }
+  virtual const TargetFrameInfo  &getFrameInfo() const { return FrameInfo; }
+  virtual const MRegisterInfo *getRegisterInfo() const {
+    return &InstrInfo.getRegisterInfo();
+  }
+
   virtual const MachineSchedInfo &getSchedInfo() const { abort(); }
   virtual const MachineRegInfo   &getRegInfo()   const { abort(); }
-  virtual const MachineFrameInfo &getFrameInfo() const { abort(); }
   virtual const MachineCacheInfo &getCacheInfo() const { abort(); }
   virtual const MachineOptInfo   &getOptInfo()   const { abort(); }
-  virtual const MRegisterInfo *getRegisterInfo() const {
-    return &instrInfo.getRegisterInfo();
-  }
 
   /// addPassesToJITCompile - Add passes to the specified pass manager to
   /// implement a fast dynamic compiler for this target.  Return true if this is