From 6292a056a893251a1ee1cdf0ba7172fa338ce63c Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 21 Jun 2004 17:19:08 +0000 Subject: [PATCH] Type::getPrimitiveID() -> getTypeID() llvm-svn: 14287 --- llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp | 4 ++-- llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 4 ++-- llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp index 697be0907c25..27ae6bde37a5 100644 --- a/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp @@ -266,7 +266,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { // FP Constants are printed as integer constants to avoid losing // precision... double Val = CFP->getValue(); - switch (CFP->getType()->getPrimitiveID()) { + switch (CFP->getType()->getTypeID()) { default: assert(0 && "Unknown floating point type!"); case Type::FloatTyID: { union FU { // Abide by C TBAA rules @@ -313,7 +313,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { const Type *type = CV->getType(); O << "\t"; - switch (type->getPrimitiveID()) { + switch (type->getTypeID()) { case Type::UByteTyID: case Type::SByteTyID: O << ".byte"; break; diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index 697be0907c25..27ae6bde37a5 100644 --- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -266,7 +266,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { // FP Constants are printed as integer constants to avoid losing // precision... double Val = CFP->getValue(); - switch (CFP->getType()->getPrimitiveID()) { + switch (CFP->getType()->getTypeID()) { default: assert(0 && "Unknown floating point type!"); case Type::FloatTyID: { union FU { // Abide by C TBAA rules @@ -313,7 +313,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { const Type *type = CV->getType(); O << "\t"; - switch (type->getPrimitiveID()) { + switch (type->getTypeID()) { case Type::UByteTyID: case Type::SByteTyID: O << ".byte"; break; diff --git a/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp index 45dcf74f20e0..ea35cc8ac448 100644 --- a/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCRegisterInfo.cpp @@ -248,7 +248,7 @@ void PowerPCRegisterInfo::emitEpilogue(MachineFunction &MF, const TargetRegisterClass* PowerPCRegisterInfo::getRegClassForType(const Type* Ty) const { - switch (Ty->getPrimitiveID()) { + switch (Ty->getTypeID()) { case Type::LongTyID: case Type::ULongTyID: assert(0 && "Long values can't fit in registers!"); default: assert(0 && "Invalid type to getClass!");