[serialization] Remove skeleton for sharing module decl/type IDs.

Clang modules have a clever way to share decl and type IDs, by saying
"this range of IDs comes from this other module". Swift modules have to
be resilient, however, and so this is not a viable solution.

We still use 0 as a special ID for null decls and types, when applicable.

Swift SVN r5323
This commit is contained in:
Jordan Rose
2013-05-25 01:34:55 +00:00
parent 4f2b0bb917
commit 9b712a2fe9
3 changed files with 7 additions and 23 deletions

View File

@@ -145,12 +145,12 @@ ModuleFile::ModuleFile(llvm::OwningPtr<llvm::MemoryBuffer> &&input)
case index_block::DECL_OFFSETS:
assert(blobData.empty());
// FIXME: Use proper BCRecordLayout for this.
Decls.assign(scratch.begin()+1, scratch.end());
Decls.assign(scratch.begin(), scratch.end());
break;
case index_block::TYPE_OFFSETS:
assert(blobData.empty());
// FIXME: Use proper BCRecordLayout for this.
Types.assign(scratch.begin()+1, scratch.end());
Types.assign(scratch.begin(), scratch.end());
break;
default:
// Unknown index kind, which this version of the compiler won't use.