Handle 64-bit constant exprs on 64-bit targets.

llvm-svn: 22696
This commit is contained in:
Chris Lattner 2005-08-08 04:26:32 +00:00
parent 579b20b747
commit 88e2d2ee6b
1 changed files with 3 additions and 1 deletions

View File

@ -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: