diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-28 20:33:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-28 20:33:52 +0000 |
commit | fde4b51baae5746bc8d7eccff7a9a1e2b6e6e8e9 (patch) | |
tree | c4e4acdc09fc4baea1d746689b1bfaa3bbe1eac0 | |
parent | d282cfef614db2a4540f2f8e72cb666f2b614296 (diff) |
Implement the TargetFrameInfo interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5189 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86TargetMachine.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/Target/X86/X86TargetMachine.h b/lib/Target/X86/X86TargetMachine.h index 15b5d4950f..84907a3bf8 100644 --- a/lib/Target/X86/X86TargetMachine.h +++ b/lib/Target/X86/X86TargetMachine.h @@ -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 |