From: Chandler Carruth Date: Mon, 2 May 2011 01:06:57 +0000 (+0000) Subject: I updated this constructor's interface, and didn't have to fix any X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f00f842aaf628c1b02c471a233184024511fedd;p=clang I updated this constructor's interface, and didn't have to fix any callers. Shockingly enough, *there are none*! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130677 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 363dca75b4..5f2d144eb5 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -723,12 +723,6 @@ class DeclRefExpr : public Expr { return const_cast(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, diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index bba35ef532..6499f327b0 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -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,