diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-08 04:26:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-08 04:26:32 +0000 |
commit | 88e2d2ee6b1533035c0496b70583328447dceb46 (patch) | |
tree | f261528e54a87d56fefaca6591aae87ce3f0168c /llvm/lib/CodeGen | |
parent | 579b20b747ac4907c2dfd88bda1a769a153a6734 (diff) | |
download | bcm5719-llvm-88e2d2ee6b1533035c0496b70583328447dceb46.tar.gz bcm5719-llvm-88e2d2ee6b1533035c0496b70583328447dceb46.zip |
Handle 64-bit constant exprs on 64-bit targets.
llvm-svn: 22696
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index ce9a84eecc7..497e9c89fab 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/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: |