diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-10 21:41:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-10 21:41:48 +0000 |
commit | 42d42b5b84603032e57add333b5b44e0ef99bd9e (patch) | |
tree | 2196e0d3db1a11385b93e067622251482654ad56 /lib/Frontend/PCHWriter.cpp | |
parent | f908c519c1625e81d9e33d8a2a306a92834fe317 (diff) |
add support for reading macros. This does all the reading (with a bunch of
fixme's, e.g. for tokens with identifiers) but does not actually install
them. Some details with the predefines buffer needs to be sorted out first.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | lib/Frontend/PCHWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp index a31c0c7985..09080d640b 100644 --- a/lib/Frontend/PCHWriter.cpp +++ b/lib/Frontend/PCHWriter.cpp @@ -573,6 +573,8 @@ void PCHWriter::WritePreprocessor(const Preprocessor &PP) { // macros. for (Preprocessor::macro_iterator I = PP.macro_begin(), E = PP.macro_end(); I != E; ++I) { + // FIXME: This emits macros in hash table order, we should do it in a stable + // order so that output is reproducible. MacroInfo *MI = I->second; // Don't emit builtin macros like __LINE__ to the PCH file unless they have |