[llvm-commits] CVS: llvm/lib/Transforms/Utils/Linker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 17 13:23:01 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
Linker.cpp updated: 1.70 -> 1.71
---
Log message:
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Transforms/Utils/Linker.cpp
diff -u llvm/lib/Transforms/Utils/Linker.cpp:1.70 llvm/lib/Transforms/Utils/Linker.cpp:1.71
--- llvm/lib/Transforms/Utils/Linker.cpp:1.70 Tue May 25 03:51:58 2004
+++ llvm/lib/Transforms/Utils/Linker.cpp Thu Jun 17 13:16:22 2004
@@ -97,10 +97,10 @@
// Two types cannot be resolved together if they are of different primitive
// type. For example, we cannot resolve an int to a float.
- if (DestTyT->getPrimitiveID() != SrcTyT->getPrimitiveID()) return true;
+ if (DestTyT->getTypeID() != SrcTyT->getTypeID()) return true;
// Otherwise, resolve the used type used by this derived type...
- switch (DestTyT->getPrimitiveID()) {
+ switch (DestTyT->getTypeID()) {
case Type::FunctionTyID: {
if (cast<FunctionType>(DestTyT)->isVarArg() !=
cast<FunctionType>(SrcTyT)->isVarArg() ||
More information about the llvm-commits
mailing list