diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-29 07:03:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-29 07:03:59 +0000 |
commit | 005f92f53c99ce8e701e44115c94216b108ea021 (patch) | |
tree | 742d1ba7aef98c7f2f35bcd2bb29de7b5cb12301 /lib/AST/DeclCXX.cpp | |
parent | 5648a8a700d2a0435373da4122d32f8e6fe95656 (diff) |
switch TemplateOrInstantiation to be a PointerUnion, which
simplifies some code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclCXX.cpp')
-rw-r--r-- | lib/AST/DeclCXX.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp index 2858d479bb..0fd83efa20 100644 --- a/lib/AST/DeclCXX.cpp +++ b/lib/AST/DeclCXX.cpp @@ -179,24 +179,6 @@ void CXXRecordDecl::addConversionFunction(ASTContext &Context, Conversions.addOverload(ConvDecl); } -CXXRecordDecl *CXXRecordDecl::getInstantiatedFromMemberClass() { - if (TemplateOrInstantiation.getInt() == 1) - return cast_or_null<CXXRecordDecl>(TemplateOrInstantiation.getPointer()); - return 0; -} - -void CXXRecordDecl::setDescribedClassTemplate(ClassTemplateDecl *Template) { - TemplateOrInstantiation.setInt(0); - TemplateOrInstantiation.setPointer(Template); -} - -ClassTemplateDecl *CXXRecordDecl::getDescribedClassTemplate() { - if (TemplateOrInstantiation.getInt() == 0) - return cast_or_null<ClassTemplateDecl>( - TemplateOrInstantiation.getPointer()); - return 0; -} - CXXMethodDecl * CXXMethodDecl::Create(ASTContext &C, CXXRecordDecl *RD, SourceLocation L, DeclarationName N, |