Eliminate some unused getQualifierRange() member functions. We deal in nested-name-specifier locations now.

llvm-svn: 126842
This commit is contained in:
Douglas Gregor 2011-03-02 15:13:50 +00:00
parent 5fca7eaf85
commit 1f2f796690
2 changed files with 1 additions and 20 deletions

View File

@ -2045,12 +2045,6 @@ public:
return QualifierLoc.getNestedNameSpecifier();
}
/// \brief Retrieve the source range of the nested-name-specifier
/// that qualifies the name.
SourceRange getQualifierRange() const {
return QualifierLoc.getSourceRange();
}
DeclarationNameInfo getNameInfo() const {
return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc);
}
@ -2176,12 +2170,6 @@ public:
return QualifierLoc.getNestedNameSpecifier();
}
/// \brief Retrieve the source range of the nested-name-specifier
/// that qualifies the name.
SourceRange getQualifierRange() const {
return QualifierLoc.getSourceRange();
}
DeclarationNameInfo getNameInfo() const {
return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc);
}
@ -2249,13 +2237,6 @@ public:
return QualifierLoc.getNestedNameSpecifier();
}
/// \brief Retrieve the source range of the nested-name-specifier
/// that qualifies the name.
SourceRange getQualifierRange() const {
return QualifierLoc.getSourceRange();
}
// FIXME: DeclarationNameInfo
static UnresolvedUsingTypenameDecl *
Create(ASTContext &C, DeclContext *DC, SourceLocation UsingLoc,
SourceLocation TypenameLoc, NestedNameSpecifierLoc QualifierLoc,

View File

@ -2185,7 +2185,7 @@ class CXXDependentScopeMemberExpr : public Expr {
/// member stores the resolves of name lookup in the context of the member
/// access expression, to be used at instantiation time.
///
/// FIXME: This member, along with the Qualifier and QualifierRange, could
/// FIXME: This member, along with the QualifierLoc, could
/// be stuck into a structure that is optionally allocated at the end of
/// the CXXDependentScopeMemberExpr, to save space in the common case.
NamedDecl *FirstQualifierFoundInScope;