]> granicus.if.org Git - clang/commitdiff
I updated this constructor's interface, and didn't have to fix any
authorChandler Carruth <chandlerc@gmail.com>
Mon, 2 May 2011 01:06:57 +0000 (01:06 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 2 May 2011 01:06:57 +0000 (01:06 +0000)
callers. Shockingly enough, *there are none*!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130677 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h
lib/AST/Expr.cpp

index 363dca75b4a12320a0a6b59ed66341b79a088d56..5f2d144eb544e6a7f9e3cba5ba5a06e87062b1ca 100644 (file)
@@ -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,
index bba35ef532ff466e40b31e1de5c52cc33a792c7c..6499f327b07e70263374ff56bfc473bad5ccac6e 100644 (file)
@@ -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,