From fbdec250b314be0b80121654385e66f6a7650381 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 30 Sep 2001 22:46:54 +0000 Subject: Implement constant pointers, and null specifically in the parser, bytecode writer, and bytecode reader. llvm-svn: 668 --- llvm/lib/Bytecode/Writer/ConstantWriter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Bytecode/Writer') diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp index 24ceaecf2e2..dde47d52b11 100644 --- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp @@ -141,6 +141,11 @@ bool BytecodeWriter::outputConstant(const ConstPoolVal *CPV) { break; } + case Type::PointerTyID: { + output_vbr((unsigned)0, Out); + break; + } + case Type::FloatTyID: { // Floating point types... float Tmp = (float)((const ConstPoolFP*)CPV)->getValue(); output_data(&Tmp, &Tmp+1, Out); -- cgit v1.2.3