aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-08 04:26:32 +0000
committerChris Lattner <sabre@nondot.org>2005-08-08 04:26:32 +0000
commit660538c8a5c4795926694a5d37b147315941933e (patch)
treed8fbedd5ee52f638725b0547dd77236edc496b45 /lib/CodeGen/AsmPrinter.cpp
parentbbf728edebe3ba724d49fa3aff525c59ebca7942 (diff)
Handle 64-bit constant exprs on 64-bit targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index ce9a84eecc..497e9c89fa 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -302,7 +302,9 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
O << Data32bitsDirective;
break;
case Type::ULongTyID: case Type::LongTyID:
- assert (0 && "Should have already output double-word constant.");
+ assert(Data64bitsDirective &&"Target cannot handle 64-bit constant exprs!");
+ O << Data64bitsDirective;
+ break;
case Type::FloatTyID: case Type::DoubleTyID:
assert (0 && "Should have already output floating point constant.");
default: