diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-17 18:19:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-17 18:19:28 +0000 |
commit | 6b7275996c78e50ca8b7d13625296b92d74b86c7 (patch) | |
tree | 75817e19a6f0bb380bf1a9ba39f0664076fb5705 /llvm/lib/Transforms | |
parent | 97bfcea262bbdeba8f8d468ff999008a4c448474 (diff) | |
download | bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.tar.gz bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.zip |
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
llvm-svn: 14201
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionResolution.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/IPO/MutateStructTypes.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Utils/Linker.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp index d0179809b98..528c8acce18 100644 --- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp +++ b/llvm/lib/Transforms/IPO/FunctionResolution.cpp @@ -79,8 +79,8 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals, 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); diff --git a/llvm/lib/Transforms/IPO/MutateStructTypes.cpp b/llvm/lib/Transforms/IPO/MutateStructTypes.cpp index 38f9445218c..d6896731291 100644 --- a/llvm/lib/Transforms/IPO/MutateStructTypes.cpp +++ b/llvm/lib/Transforms/IPO/MutateStructTypes.cpp @@ -54,7 +54,7 @@ const Type *MutateStructTypes::ConvertType(const Type *Ty) { 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()); diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp index 6220140afe3..00906a46a26 100644 --- a/llvm/lib/Transforms/Utils/Linker.cpp +++ b/llvm/lib/Transforms/Utils/Linker.cpp @@ -97,10 +97,10 @@ static bool RecursiveResolveTypesI(const PATypeHolder &DestTy, // 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() || |