diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-20 22:14:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-20 22:14:48 +0000 |
commit | de4e0a8e57e643bbe78ad37ad6023c45a8a9f7e2 (patch) | |
tree | 6cb7eb2ab77aba85de76d8f209c86c25e10be377 /lib/Lex/PreprocessingRecord.cpp | |
parent | cc6306e96782a8da2d818bfaca003645530ffd2f (diff) |
The location of the name in MacroDefinition is the beginning of its range,
don't store an extra location for it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PreprocessingRecord.cpp')
-rw-r--r-- | lib/Lex/PreprocessingRecord.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Lex/PreprocessingRecord.cpp b/lib/Lex/PreprocessingRecord.cpp index a4315b78d5..2368b38981 100644 --- a/lib/Lex/PreprocessingRecord.cpp +++ b/lib/Lex/PreprocessingRecord.cpp @@ -229,9 +229,7 @@ void PreprocessingRecord::MacroDefined(const Token &Id, const MacroInfo *MI) { SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); MacroDefinition *Def - = new (*this) MacroDefinition(Id.getIdentifierInfo(), - MI->getDefinitionLoc(), - R); + = new (*this) MacroDefinition(Id.getIdentifierInfo(), R); addPreprocessedEntity(Def); MacroDefinitions[MI] = getPPEntityID(PreprocessedEntities.size()-1, /*isLoaded=*/false); |