mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +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:
@ -255,7 +255,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
||||
const std::string &NameSoFar,
|
||||
bool IgnoreName) {
|
||||
if (Ty->isPrimitiveType())
|
||||
switch (Ty->getPrimitiveID()) {
|
||||
switch (Ty->getTypeID()) {
|
||||
case Type::VoidTyID: return Out << "void " << NameSoFar;
|
||||
case Type::BoolTyID: return Out << "bool " << NameSoFar;
|
||||
case Type::UByteTyID: return Out << "unsigned char " << NameSoFar;
|
||||
@ -279,7 +279,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
||||
if (I != TypeNames.end()) return Out << I->second << " " << NameSoFar;
|
||||
}
|
||||
|
||||
switch (Ty->getPrimitiveID()) {
|
||||
switch (Ty->getTypeID()) {
|
||||
case Type::FunctionTyID: {
|
||||
const FunctionType *MTy = cast<FunctionType>(Ty);
|
||||
std::stringstream FunctionInnards;
|
||||
@ -518,7 +518,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
}
|
||||
}
|
||||
|
||||
switch (CPV->getType()->getPrimitiveID()) {
|
||||
switch (CPV->getType()->getTypeID()) {
|
||||
case Type::BoolTyID:
|
||||
Out << (CPV == ConstantBool::False ? "0" : "1"); break;
|
||||
case Type::SByteTyID:
|
||||
|
Reference in New Issue
Block a user