diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-07-28 19:12:24 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-07-28 19:12:24 +0000 |
commit | f63bc199c65a19952c480eb4d0c592dfd58c966f (patch) | |
tree | 4396308cd05cf0a56367e1239639bfc8b12c6ef6 | |
parent | 8b29776d680f1b80b7471291b7d41df753d28511 (diff) |
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
-rw-r--r-- | lib/Target/PowerPC/PPC32AsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp index 891e3e8182..032bf598e9 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<ConstantInt>(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 891e3e8182..032bf598e9 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<ConstantInt>(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 891e3e8182..032bf598e9 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<ConstantInt>(CV)) { union DU { // Abide by C TBAA rules int64_t UVal; |