Allow unresolved/opaque types to be read and written to bytecode files
llvm-svn: 959
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
index 4400290..8beb132 100644
--- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -80,6 +80,11 @@
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"