[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 7 21:26:43 PDT 2005



Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.18 -> 1.19
---
Log message:

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


---
Diffs of the changes:  (+3 -1)

 AsmPrinter.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.18 llvm/lib/CodeGen/AsmPrinter.cpp:1.19
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.18	Sun May 15 08:05:48 2005
+++ llvm/lib/CodeGen/AsmPrinter.cpp	Sun Aug  7 23:26:32 2005
@@ -302,7 +302,9 @@
     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:






More information about the llvm-commits mailing list