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 | 34321bcd0b52e83d45e5b493f9d720dcd8e84864 (patch) | |
tree | 3b82b34016cd470c42bbf0c8d963c4ee73883669 /clang/lib/Frontend/PCHWriter.cpp | |
parent | 1156565c48894695531b6264a7faa1a70f425bb0 (diff) | |
download | bcm5719-llvm-34321bcd0b52e83d45e5b493f9d720dcd8e84864.tar.gz bcm5719-llvm-34321bcd0b52e83d45e5b493f9d720dcd8e84864.zip |
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.
llvm-svn: 68828
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index a31c0c79855..09080d640b5 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/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 |