diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-19 16:15:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-19 16:15:56 +0000 |
commit | 94dc8f640ebea52241412512ed48601626edbc58 (patch) | |
tree | d2f85a840dec17223611a920b85f8e27fb4e60e2 /lib/Lex/PreprocessingRecord.cpp | |
parent | f7ad50026074776bde13fdf790bcf2f647904f1b (diff) |
Optionally store a PreprocessingRecord in the preprocessor itself, and
tie its creation to a CC1 flag -detailed-preprocessing-record.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PreprocessingRecord.cpp')
-rw-r--r-- | lib/Lex/PreprocessingRecord.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Lex/PreprocessingRecord.cpp b/lib/Lex/PreprocessingRecord.cpp index 3e0a03b74f..83268e0134 100644 --- a/lib/Lex/PreprocessingRecord.cpp +++ b/lib/Lex/PreprocessingRecord.cpp @@ -21,19 +21,3 @@ void PreprocessingRecord::addPreprocessedEntity(PreprocessedEntity *Entity) { PreprocessedEntities.push_back(Entity); } -void PopulatePreprocessingRecord::MacroExpands(const Token &Id, - const MacroInfo* MI) { - Record.addPreprocessedEntity( - new (Record) MacroInstantiation(Id.getIdentifierInfo(), - Id.getLocation(), - MacroDefinitions[MI])); -} - -void PopulatePreprocessingRecord::MacroDefined(const IdentifierInfo *II, - const MacroInfo *MI) { - SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); - MacroDefinition *Def - = new (Record) MacroDefinition(II, MI->getDefinitionLoc(), R); - MacroDefinitions[MI] = Def; - Record.addPreprocessedEntity(Def); -} |