mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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() ||
|
||||
|
Reference in New Issue
Block a user