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

Chris Lattner lattner at cs.uiuc.edu
Thu Jun 17 13:26:04 PDT 2004


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.45 -> 1.46

---
Log message:

Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()


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

Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.45 llvm/lib/Target/TargetData.cpp:1.46
--- llvm/lib/Target/TargetData.cpp:1.45	Wed Apr 14 16:21:56 2004
+++ llvm/lib/Target/TargetData.cpp	Thu Jun 17 13:19:28 2004
@@ -150,7 +150,7 @@
 static inline void getTypeInfo(const Type *Ty, const TargetData *TD,
 			       uint64_t &Size, unsigned char &Alignment) {
   assert(Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!");
-  switch (Ty->getPrimitiveID()) {
+  switch (Ty->getTypeID()) {
   case Type::VoidTyID:
   case Type::BoolTyID:
   case Type::UByteTyID:





More information about the llvm-commits mailing list