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

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



Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.69 -> 1.70
---
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 -1)

 TargetData.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.69 llvm/lib/Target/TargetData.cpp:1.70
--- llvm/lib/Target/TargetData.cpp:1.69	Fri Jun 16 13:11:26 2006
+++ llvm/lib/Target/TargetData.cpp	Fri Jun 16 13:22:52 2006
@@ -152,7 +152,7 @@
   }
 }
 
-TargetData::TargetData(const std::string &ToolName, const Module *M) {
+TargetData::TargetData(const Module *M) {
   LittleEndian     = M->getEndianness() != Module::BigEndian;
   PointerSize      = M->getPointerSize() != Module::Pointer64 ? 4 : 8;
   PointerAlignment = PointerSize;






More information about the llvm-commits mailing list