[preprocessing record] Have the MacroDefinitions map point to the MacroDefinition...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 22 Feb 2013 18:35:59 +0000 (18:35 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 22 Feb 2013 18:35:59 +0000 (18:35 +0000)
commit832de9fcf1793a73a9f4909346d9938b1f56304b
treeb1f846544ae552981000e708771822debefb94ab
parent2999b77f1d1aec8b715b75d6724df6e905b73969
[preprocessing record] Have the MacroDefinitions map point to the MacroDefinition object instead
its index in the preprocessed entities vector.

This is because the order of the entities in the vector can change in some (uncommon) cases.

llvm-svn: 175907
clang/include/clang/Lex/PreprocessingRecord.h
clang/lib/Lex/PreprocessingRecord.cpp
clang/lib/Serialization/ASTReader.cpp
clang/test/Preprocessor/pp-record.c