[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp

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


Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.22 -> 1.23

---
Log message:

Add a new constructor


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

Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.22 llvm/lib/Target/TargetMachine.cpp:1.23
--- llvm/lib/Target/TargetMachine.cpp:1.22	Mon Mar  1 00:43:28 2004
+++ llvm/lib/Target/TargetMachine.cpp	Tue Mar  2 20:12:47 2004
@@ -30,6 +30,11 @@
                            IntAl, ShortAl, ByteAl) {
   IL = il ? il : new DefaultIntrinsicLowering();
 }
+TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
+                             const Module &M)
+  : Name(name), DataLayout(name, &M) {
+  IL = il ? il : new DefaultIntrinsicLowering();
+}
 
 TargetMachine::~TargetMachine() {
   delete IL;





More information about the llvm-commits mailing list