diff options
| author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2012-02-06 22:45:07 +0000 |
|---|---|---|
| committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2012-02-06 22:45:07 +0000 |
| commit | e0a70b26568f95f1793d268a9e77d4987b227246 (patch) | |
| tree | 418864b243bf3a627fda94877fa49c99e9835cde /clang/lib/Serialization/ASTReader.cpp | |
| parent | 998bce0366c930b3ec7a6e357ea8625f02690702 (diff) | |
| download | bcm5719-llvm-e0a70b26568f95f1793d268a9e77d4987b227246.tar.gz bcm5719-llvm-e0a70b26568f95f1793d268a9e77d4987b227246.zip | |
Added source location for the template keyword in DependentTemplateSpecializationTypeLoc nodes (DTSTLoc).
The new info is propagated to TSTLoc on template instantiation, getting rid of 3 FIXMEs in TreeTransform.h and another one Parser.cpp.
Simplified code in TypeSpecLocFiller visitor methods for DTSTLoc and DependentNameTypeLoc by removing what now seems to be dead code (adding corresponding assertions).
llvm-svn: 149923
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
| -rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 64ffb1525fc..1d193121057 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -4345,6 +4345,7 @@ void TypeLocReader::VisitDependentTemplateSpecializationTypeLoc( DependentTemplateSpecializationTypeLoc TL) { TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); + TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx)); TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx)); TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); |

