mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user