From: Misha Brukman Date: Wed, 28 Jul 2004 19:12:24 +0000 (+0000) Subject: Find longs by type, not by their primitive size being 64. Patch by Nate Begeman. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f63bc199c65a19952c480eb4d0c592dfd58c966f;p=oota-llvm.git Find longs by type, not by their primitive size being 64. Patch by Nate Begeman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15304 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp index 891e3e81820..032bf598e92 100644 --- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp +++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp @@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { return; } } - } else if (CV->getType()->getPrimitiveSize() == 64) { + } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast(CV)) { union DU { // Abide by C TBAA rules int64_t UVal; diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 891e3e81820..032bf598e92 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { return; } } - } else if (CV->getType()->getPrimitiveSize() == 64) { + } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast(CV)) { union DU { // Abide by C TBAA rules int64_t UVal; diff --git a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index 891e3e81820..032bf598e92 100644 --- a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { return; } } - } else if (CV->getType()->getPrimitiveSize() == 64) { + } else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) { if (const ConstantInt *CI = dyn_cast(CV)) { union DU { // Abide by C TBAA rules int64_t UVal;