diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-30 22:46:54 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-30 22:46:54 +0000 | 
| commit | 1a1cb111fe9081cab4d666338c547253c4a437c9 (patch) | |
| tree | 3f63e2d30ad41c283b1eab098b0afab00bd76d6e /lib/Bytecode/Writer/ConstantWriter.cpp | |
| parent | 4cfb15331652f9a2f7e5f755485a2f6eb87a20c6 (diff) | |
Implement constant pointers, and null specifically in the parser, bytecode writer, and
bytecode reader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
| -rw-r--r-- | lib/Bytecode/Writer/ConstantWriter.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 24ceaecf2e..dde47d52b1 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/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); | 
