[serialization] Include the module name in the serialized AST data.

We don't currently use this for anything, but if we have the module name
available and easy to access in the bitstream, we can drop the wrapper
around the serialized AST that's put into the binary itself for use by LLDB.

Swift SVN r12919
This commit is contained in:
Jordan Rose
2014-01-24 18:42:03 +00:00
parent bbc1093efd
commit f214e2f185
4 changed files with 23 additions and 8 deletions

View File

@@ -61,6 +61,10 @@ validateControlBlock(llvm::BitstreamCursor &cursor,
result = ModuleStatus::Valid;
break;
}
case control_block::MODULE_NAME:
// Ignore the module name; this is only interesting when the serialized
// data is the only clue to which module this is.
break;
default:
// Unknown metadata record, possibly for use by a future version of the
// module format.