aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-30 21:10:34 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-30 21:10:34 +0000
commit1c02101999a576790b433ac4b5195e7ac4197347 (patch)
treee29402b4c4a47b68835400a8156aa0937f0f7fc2 /lib
parent2be586108bb401019647791feca19ea03fd477ce (diff)
Get rid of CXXTempVarDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/AST/DeclBase.cpp1
-rw-r--r--lib/AST/DeclCXX.cpp9
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index ba8f3351c3..80b422e753 100644
--- a/lib/AST/DeclBase.cpp
+++ b/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/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp
index 6354d84784..19f8958277 100644
--- a/lib/AST/DeclCXX.cpp
+++ b/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: