[llvm-commits] CVS: llvm/lib/Target/CBackend/CTargetMachine.h

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 2 20:20:03 PST 2004


Changes in directory llvm/lib/Target/CBackend:

CTargetMachine.h updated: 1.2 -> 1.3

---
Log message:

SPECIFY a target data to initialize the CBE target with.  Until now we have
been using the default target data layout object to lower malloc instructions,
causing us to allocate more memory than we needed!  This could improve the 
performance of the CBE generated code substantially!


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

Index: llvm/lib/Target/CBackend/CTargetMachine.h
diff -u llvm/lib/Target/CBackend/CTargetMachine.h:1.2 llvm/lib/Target/CBackend/CTargetMachine.h:1.3
--- llvm/lib/Target/CBackend/CTargetMachine.h:1.2	Mon Mar  1 00:43:28 2004
+++ llvm/lib/Target/CBackend/CTargetMachine.h	Tue Mar  2 20:14:15 2004
@@ -21,7 +21,7 @@
 
 struct CTargetMachine : public TargetMachine {
   CTargetMachine(const Module &M, IntrinsicLowering *IL) :
-    TargetMachine("CBackend", IL) {}
+    TargetMachine("CBackend", IL, M) {}
 
   virtual const TargetInstrInfo &getInstrInfo() const { abort(); }
   virtual const TargetFrameInfo &getFrameInfo() const { abort(); }





More information about the llvm-commits mailing list