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

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 16 11:23:10 PDT 2006



Changes in directory llvm/lib/Target/CBackend:

CTargetMachine.h updated: 1.13 -> 1.14
---
Log message:

Don't pass target name into TargetData anymore, it is never used or needed.
Remove explicit casts to std::string now that there is no overload resolution
issues in the TargetData ctors.


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

 CTargetMachine.h |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Target/CBackend/CTargetMachine.h
diff -u llvm/lib/Target/CBackend/CTargetMachine.h:1.13 llvm/lib/Target/CBackend/CTargetMachine.h:1.14
--- llvm/lib/Target/CBackend/CTargetMachine.h:1.13	Fri May 12 01:33:48 2006
+++ llvm/lib/Target/CBackend/CTargetMachine.h	Fri Jun 16 13:22:52 2006
@@ -23,8 +23,7 @@
   const TargetData DataLayout;       // Calculates type size & alignment
 
   CTargetMachine(const Module &M, const std::string &FS)
-    : TargetMachine("CBackend", M),
-      DataLayout("CBackend", &M) {}
+    : TargetMachine("CBackend", M), DataLayout(&M) {}
 
   // This is the only thing that actually does anything here.
   virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,






More information about the llvm-commits mailing list