[modules] Stop trying to fake up a linear MacroDirective history.
Modules builds fundamentally have a non-linear macro history. In the interest of better source fidelity, represent the macro definition information faithfully: we have a linear macro directive history within each module, and at any point we have a unique "latest" local macro directive and a collection of visible imported directives. This also removes the attendent complexity of attempting to create a correct MacroDirective history (which we got wrong in the general case). No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236176 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/NSAPI.h 3 additions, 0 deletionsinclude/clang/AST/NSAPI.h
- include/clang/Basic/IdentifierTable.h 1 addition, 0 deletionsinclude/clang/Basic/IdentifierTable.h
- include/clang/Lex/HeaderSearch.h 3 additions, 2 deletionsinclude/clang/Lex/HeaderSearch.h
- include/clang/Lex/Preprocessor.h 107 additions, 20 deletionsinclude/clang/Lex/Preprocessor.h
- include/clang/Serialization/ASTReader.h 1 addition, 61 deletionsinclude/clang/Serialization/ASTReader.h
- lib/ARCMigrate/ObjCMT.cpp 18 additions, 22 deletionslib/ARCMigrate/ObjCMT.cpp
- lib/ARCMigrate/TransAPIUses.cpp 1 addition, 1 deletionlib/ARCMigrate/TransAPIUses.cpp
- lib/ARCMigrate/TransRetainReleaseDealloc.cpp 1 addition, 1 deletionlib/ARCMigrate/TransRetainReleaseDealloc.cpp
- lib/ARCMigrate/TransUnusedInitDelegate.cpp 1 addition, 1 deletionlib/ARCMigrate/TransUnusedInitDelegate.cpp
- lib/ARCMigrate/Transforms.cpp 3 additions, 5 deletionslib/ARCMigrate/Transforms.cpp
- lib/ARCMigrate/Transforms.h 1 addition, 1 deletionlib/ARCMigrate/Transforms.h
- lib/AST/NSAPI.cpp 5 additions, 0 deletionslib/AST/NSAPI.cpp
- lib/Frontend/CompilerInstance.cpp 35 additions, 63 deletionslib/Frontend/CompilerInstance.cpp
- lib/Frontend/PrintPreprocessedOutput.cpp 3 additions, 3 deletionslib/Frontend/PrintPreprocessedOutput.cpp
- lib/Lex/HeaderSearch.cpp 5 additions, 2 deletionslib/Lex/HeaderSearch.cpp
- lib/Lex/MacroArgs.cpp 3 additions, 4 deletionslib/Lex/MacroArgs.cpp
- lib/Lex/PPDirectives.cpp 20 additions, 14 deletionslib/Lex/PPDirectives.cpp
- lib/Lex/PPExpressions.cpp 6 additions, 10 deletionslib/Lex/PPExpressions.cpp
- lib/Lex/PPLexerChange.cpp 1 addition, 1 deletionlib/Lex/PPLexerChange.cpp
- lib/Lex/PPMacroExpansion.cpp 47 additions, 40 deletionslib/Lex/PPMacroExpansion.cpp
Loading
Please register or sign in to comment