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 | 0d48fb89c023a98e991e29c01347ea588a38a790 (patch) | |
| tree | 63d12bfa9d04c82fc57678d88c00686ab5490704 /clang/lib/Lex | |
| parent | b3642c2c7a209e025daef6b35b78699265a41970 (diff) | |
| download | bcm5719-llvm-0d48fb89c023a98e991e29c01347ea588a38a790.tar.gz bcm5719-llvm-0d48fb89c023a98e991e29c01347ea588a38a790.zip | |
The location of the name in MacroDefinition is the beginning of its range,
don't store an extra location for it.
llvm-svn: 140190
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/PreprocessingRecord.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Lex/PreprocessingRecord.cpp b/clang/lib/Lex/PreprocessingRecord.cpp index a4315b78d5b..2368b389810 100644 --- a/clang/lib/Lex/PreprocessingRecord.cpp +++ b/clang/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); |

