diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-23 01:53:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-23 01:53:22 +0000 |
commit | 0557f117dde583cd0c15b7baa07cc4bcea980358 (patch) | |
tree | 9c73c1562fe435e52271e7d9ecec1d7a08788f92 /llvm/lib/Bytecode/Writer | |
parent | 61b665528e7cfaaefc8ca0dfe44e2f9bf482e346 (diff) | |
download | bcm5719-llvm-0557f117dde583cd0c15b7baa07cc4bcea980358.tar.gz bcm5719-llvm-0557f117dde583cd0c15b7baa07cc4bcea980358.zip |
Allow unresolved/opaque types to be read and written to bytecode files
llvm-svn: 959
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r-- | llvm/lib/Bytecode/Writer/ConstantWriter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp index 4400290328a..8beb1325791 100644 --- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp @@ -80,6 +80,11 @@ void BytecodeWriter::outputType(const Type *T) { break; } + case Type::OpaqueTyID: { + // No need to emit anything, just the count of opaque types is enough. + break; + } + //case Type::PackedTyID: default: cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize" |