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 | 362b26c37e66dc14fdd66ed3a61fddd5601b50ac (patch) | |
tree | 5d6881325ed81ec42537a82227ad0f4cd5579e75 /llvm/lib/Target/X86/X86TargetMachine.h | |
parent | 9a81e694392a58c78817e13f5539fdb0978481be (diff) | |
download | bcm5719-llvm-362b26c37e66dc14fdd66ed3a61fddd5601b50ac.tar.gz bcm5719-llvm-362b26c37e66dc14fdd66ed3a61fddd5601b50ac.zip |
Implement the TargetFrameInfo interface
llvm-svn: 5189
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.h b/llvm/lib/Target/X86/X86TargetMachine.h index 15b5d4950fb..84907a3bf82 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.h +++ b/llvm/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 |