aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/Module.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-27 01:47:08 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-27 01:47:08 +0000
commit404cddec1b415a16553b1e4240021d7d0c61a98c (patch)
treeba6c4fac8e0c64e1b52e4a8f08f7ec371dd9d27d /clang/lib/Serialization/Module.cpp
parent7ba81830ff717736940a48a53508eb3c7e90b32e (diff)
downloadllvm-404cddec1b415a16553b1e4240021d7d0c61a98c.zip
llvm-404cddec1b415a16553b1e4240021d7d0c61a98c.tar.gz
llvm-404cddec1b415a16553b1e4240021d7d0c61a98c.tar.bz2
Reimplement (de-)serialization of Objective-C categories to eliminate
the direct serialization of the linked-list structure. Instead, use a scheme similar to how we handle redeclarations, with redeclaration lists on the side. This addresses several issues: - In cases involving mixing and matching of many categories across many modules, the linked-list structure would not be consistent across different modules, and categories would get lost. - If a module is loaded after the class definition and its other categories have already been loaded, we wouldn't see any categories in the newly-loaded module. llvm-svn: 149112
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
-rw-r--r--clang/lib/Serialization/Module.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp
index bed545a..16b95e2 100644
--- a/clang/lib/Serialization/Module.cpp
+++ b/clang/lib/Serialization/Module.cpp
@@ -36,6 +36,7 @@ ModuleFile::ModuleFile(ModuleKind Kind, unsigned Generation)
DeclOffsets(0), BaseDeclID(0),
LocalNumCXXBaseSpecifiers(0), CXXBaseSpecifiersOffsets(0),
FileSortedDecls(0), RedeclarationsMap(0), LocalNumRedeclarationsInMap(0),
+ ObjCCategoriesMap(0), LocalNumObjCCategoriesInMap(0),
LocalNumTypes(0), TypeOffsets(0), BaseTypeIndex(0), StatCache(0)
{}