[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp MutateStructTypes.cpp

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


Changes in directory llvm/lib/Transforms/IPO:

FunctionResolution.cpp updated: 1.46 -> 1.47
MutateStructTypes.cpp updated: 1.47 -> 1.48

---
Log message:

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


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

Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.46 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.47
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.46	Sun Feb  8 22:14:01 2004
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp	Thu Jun 17 13:16:19 2004
@@ -79,8 +79,8 @@
       if (!Old->use_empty() && !Concrete->use_empty())
         for (unsigned i = 0; i < NumArguments; ++i)
           if (OldMT->getParamType(i) != ConcreteMT->getParamType(i))
-            if (OldMT->getParamType(i)->getPrimitiveID() != 
-                ConcreteMT->getParamType(i)->getPrimitiveID()) {
+            if (OldMT->getParamType(i)->getTypeID() != 
+                ConcreteMT->getParamType(i)->getTypeID()) {
               std::cerr << "WARNING: Function [" << Old->getName()
                         << "]: Parameter types conflict for: '";
               WriteTypeSymbolic(std::cerr, OldMT, &M);


Index: llvm/lib/Transforms/IPO/MutateStructTypes.cpp
diff -u llvm/lib/Transforms/IPO/MutateStructTypes.cpp:1.47 llvm/lib/Transforms/IPO/MutateStructTypes.cpp:1.48
--- llvm/lib/Transforms/IPO/MutateStructTypes.cpp:1.47	Tue May 25 03:51:14 2004
+++ llvm/lib/Transforms/IPO/MutateStructTypes.cpp	Thu Jun 17 13:16:19 2004
@@ -54,7 +54,7 @@
   PATypeHolder PlaceHolder = OpaqueType::get();
   TypeMap.insert(std::make_pair(Ty, PlaceHolder.get()));
 
-  switch (Ty->getPrimitiveID()) {
+  switch (Ty->getTypeID()) {
   case Type::FunctionTyID: {
     const FunctionType *FT = cast<FunctionType>(Ty);
     const Type *RetTy = ConvertType(FT->getReturnType());





More information about the llvm-commits mailing list