diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 03:10:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-11 03:10:46 +0000 |
commit | d91747980a97f8f6bc4ae365823d707ba972ef65 (patch) | |
tree | 927c64081e6fc0b56ae02e021341ad10d2f820e8 /clang/lib/Serialization/Module.cpp | |
parent | 1108cb3682bb7d39bd4516dc6fec31d61fe57f49 (diff) | |
download | bcm5719-llvm-d91747980a97f8f6bc4ae365823d707ba972ef65.tar.gz bcm5719-llvm-d91747980a97f8f6bc4ae365823d707ba972ef65.zip |
If a visibility update record is found for a DeclContext after that Decl has
already been loaded, apply that update record to the Decl immediately, rather
than adding it to a pending list and never applying it.
llvm-svn: 203534
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
-rw-r--r-- | clang/lib/Serialization/Module.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Serialization/Module.cpp b/clang/lib/Serialization/Module.cpp index 2eb397176a1..77dcc4f99e3 100644 --- a/clang/lib/Serialization/Module.cpp +++ b/clang/lib/Serialization/Module.cpp @@ -45,13 +45,6 @@ ModuleFile::ModuleFile(ModuleKind Kind, unsigned Generation) {} ModuleFile::~ModuleFile() { - for (DeclContextInfosMap::iterator I = DeclContextInfos.begin(), - E = DeclContextInfos.end(); - I != E; ++I) { - if (I->second.NameLookupTableData) - delete I->second.NameLookupTableData; - } - delete static_cast<ASTIdentifierLookupTable *>(IdentifierLookupTable); delete static_cast<HeaderFileInfoLookupTable *>(HeaderFileInfoTable); delete static_cast<ASTSelectorLookupTable *>(SelectorLookupTable); |