summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/DeclBase.cpp1
-rw-r--r--clang/lib/AST/DeclCXX.cpp9
2 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index ba8f3351c3a..80b422e7538 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -208,7 +208,6 @@ unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) {
case ObjCForwardProtocol:
case Block:
case TranslationUnit:
- case CXXTempVar:
// Aren't looked up?
case UsingDirective:
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index 6354d84784e..19f89582770 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -439,15 +439,6 @@ void StaticAssertDecl::Destroy(ASTContext& C) {
StaticAssertDecl::~StaticAssertDecl() {
}
-CXXTempVarDecl *CXXTempVarDecl::Create(ASTContext &C, DeclContext *DC,
- QualType T) {
- assert((T->isDependentType() ||
- isa<CXXRecordDecl>(T->getAsRecordType()->getDecl())) &&
- "CXXTempVarDecl must either have a dependent type "
- "or a C++ record type!");
- return new (C) CXXTempVarDecl(DC, T);
-}
-
static const char *getAccessName(AccessSpecifier AS) {
switch (AS) {
default:
OpenPOWER on IntegriCloud