[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCTargetMachine.h

Chris Lattner lattner at cs.uiuc.edu
Wed Jun 2 00:59:04 PDT 2004


Changes in directory llvm/lib/Target/PowerPC:

PowerPCTargetMachine.h updated: 1.4 -> 1.5

---
Log message:

Convert to the new TM interface


---
Diffs of the changes:  (+2 -5)

Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.h
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.h:1.4 llvm/lib/Target/PowerPC/PowerPCTargetMachine.h:1.5
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.h:1.4	Mon Mar  1 00:43:28 2004
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.h	Wed Jun  2 00:54:06 2004
@@ -31,8 +31,8 @@
 public:
   PowerPCTargetMachine(const Module &M, IntrinsicLowering *IL);
 
-  virtual const PowerPCInstrInfo     &getInstrInfo() const { return InstrInfo; }
-  virtual const TargetFrameInfo  &getFrameInfo() const { return FrameInfo; }
+  virtual const PowerPCInstrInfo *getInstrInfo() const { return &InstrInfo; }
+  virtual const TargetFrameInfo  *getFrameInfo() const { return &FrameInfo; }
   virtual const MRegisterInfo *getRegisterInfo() const {
     return &InstrInfo.getRegisterInfo();
   }
@@ -40,9 +40,6 @@
     return &JITInfo;
   }
 
-  virtual const TargetSchedInfo &getSchedInfo()  const { abort(); }
-  virtual const TargetRegInfo   &getRegInfo()    const { abort(); }
-
   /// addPassesToEmitMachineCode - Add passes to the specified pass manager to
   /// get machine code emitted.  This uses a MachineCodeEmitter object to handle
   /// actually outputting the machine code and resolving things like the address





More information about the llvm-commits mailing list