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

Brian Gaeke gaeke at cs.uiuc.edu
Fri Jan 23 00:40:02 PST 2004


Changes in directory llvm/lib/Target/PowerPC:

PowerPCTargetMachine.cpp updated: 1.2 -> 1.3
PowerPCTargetMachine.h updated: 1.2 -> 1.3

---
Log message:

Add the JITInfo object, accessor & initializer.


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

Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.2 llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.3
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.2	Fri Jan 23 00:35:43 2004
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp	Fri Jan 23 00:39:30 2004
@@ -32,7 +32,7 @@
 PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
                                            IntrinsicLowering *IL)
   : TargetMachine("PowerPC", IL, true, 4, 4, 4, 4, 4),
-    FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 4) {
+    FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 4), JITInfo(*this) {
 }
 
 // addPassesToEmitAssembly - We currently use all of the same passes as the JIT


Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.h
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.h:1.2 llvm/lib/Target/PowerPC/PowerPCTargetMachine.h:1.3
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.h:1.2	Fri Jan 23 00:35:43 2004
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.h	Fri Jan 23 00:39:30 2004
@@ -27,6 +27,7 @@
 class PowerPCTargetMachine : public TargetMachine {
   PowerPCInstrInfo InstrInfo;
   TargetFrameInfo FrameInfo;
+  PowerPCJITInfo JITInfo;
 public:
   PowerPCTargetMachine(const Module &M, IntrinsicLowering *IL);
 
@@ -34,6 +35,9 @@
   virtual const TargetFrameInfo  &getFrameInfo() const { return FrameInfo; }
   virtual const MRegisterInfo *getRegisterInfo() const {
     return &InstrInfo.getRegisterInfo();
+  }
+  virtual TargetJITInfo *getJITInfo() {
+    return &JITInfo;
   }
 
   virtual const TargetSchedInfo &getSchedInfo()  const { abort(); }





More information about the llvm-commits mailing list