forked from OSchip/llvm-project
I updated this constructor's interface, and didn't have to fix any
callers. Shockingly enough, *there are none*! llvm-svn: 130677
This commit is contained in:
parent
cf8714ee7b
commit
61a8dacd00
|
@ -723,12 +723,6 @@ class DeclRefExpr : public Expr {
|
|||
return const_cast<DeclRefExpr *>(this)->getInternalFoundDecl();
|
||||
}
|
||||
|
||||
DeclRefExpr(NestedNameSpecifierLoc QualifierLoc,
|
||||
ValueDecl *D, SourceLocation NameLoc,
|
||||
NamedDecl *FoundD,
|
||||
const TemplateArgumentListInfo *TemplateArgs,
|
||||
QualType T, ExprValueKind VK);
|
||||
|
||||
DeclRefExpr(NestedNameSpecifierLoc QualifierLoc,
|
||||
ValueDecl *D, const DeclarationNameInfo &NameInfo,
|
||||
NamedDecl *FoundD,
|
||||
|
|
|
@ -274,26 +274,6 @@ void DeclRefExpr::computeDependence() {
|
|||
ExprBits.ContainsUnexpandedParameterPack = true;
|
||||
}
|
||||
|
||||
DeclRefExpr::DeclRefExpr(NestedNameSpecifierLoc QualifierLoc,
|
||||
ValueDecl *D, SourceLocation NameLoc,
|
||||
NamedDecl *FoundD,
|
||||
const TemplateArgumentListInfo *TemplateArgs,
|
||||
QualType T, ExprValueKind VK)
|
||||
: Expr(DeclRefExprClass, T, VK, OK_Ordinary, false, false, false),
|
||||
D(D), Loc(NameLoc) {
|
||||
DeclRefExprBits.HasQualifier = QualifierLoc ? 1 : 0;
|
||||
if (QualifierLoc)
|
||||
getInternalQualifierLoc() = QualifierLoc;
|
||||
DeclRefExprBits.HasFoundDecl = FoundD ? 1 : 0;
|
||||
if (FoundD)
|
||||
getInternalFoundDecl() = FoundD;
|
||||
DeclRefExprBits.HasExplicitTemplateArgs = TemplateArgs ? 1 : 0;
|
||||
if (TemplateArgs)
|
||||
getExplicitTemplateArgs().initializeFrom(*TemplateArgs);
|
||||
|
||||
computeDependence();
|
||||
}
|
||||
|
||||
DeclRefExpr::DeclRefExpr(NestedNameSpecifierLoc QualifierLoc,
|
||||
ValueDecl *D, const DeclarationNameInfo &NameInfo,
|
||||
NamedDecl *FoundD,
|
||||
|
|
Loading…
Reference in New Issue