In the ASTReader, factor out the loading of (local) declaration IDs,
such that every declaration ID loaded from an AST file will go through a central local -> global mapping function. At present, this change does nothing, since the local -> global mapping function is the identity function. This is the mechanical part of the refactoring; a follow-up patch will address a few remaining areas where it's not obvious whether we're dealing with local or global IDs. llvm-svn: 135711
Showing
- clang/include/clang/Serialization/ASTReader.h 48 additions, 4 deletionsclang/include/clang/Serialization/ASTReader.h
- clang/lib/Serialization/ASTReader.cpp 118 additions, 100 deletionsclang/lib/Serialization/ASTReader.cpp
- clang/lib/Serialization/ASTReaderDecl.cpp 106 additions, 110 deletionsclang/lib/Serialization/ASTReaderDecl.cpp
- clang/lib/Serialization/ASTReaderStmt.cpp 68 additions, 63 deletionsclang/lib/Serialization/ASTReaderStmt.cpp
Loading
Please register or sign in to comment