[PCH/Modules] Re-apply r172620 and r172629, now with 100% less infinite loops!
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 18 Jan 2013 20:59:01 +0000 (20:59 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 18 Jan 2013 20:59:01 +0000 (20:59 +0000)
commit8bee90d5f33f49d4ebcb89aac780916fe3bfc65d
treefb2fe9e216a337412b0679ec3462aac9ab82d938
parent86c2c564ff88e4877ef0c0d89a5dc04fccbc6ace
[PCH/Modules] Re-apply r172620 and r172629, now with 100% less infinite loops!

Makes sure that a deserialized macro is only added to the preprocessor macro definitions only once.
Unfortunately I couldn't get a reduced test case.

rdar://13016031

llvm-svn: 172843
clang/include/clang/Lex/MacroInfo.h
clang/include/clang/Lex/Preprocessor.h
clang/include/clang/Serialization/ASTReader.h
clang/lib/Lex/PPMacroExpansion.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp