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 | 63595ddcb5c20490c0f8e4f6e8be2aec5a8bc970 (patch) | |
| tree | a5aa5ffeb3bf36bb3afa1f9cdb3db178b80ad409 /clang/lib/AST | |
| parent | 5b52baeeef7caf7dd466818397589d09abe32325 (diff) | |
| download | bcm5719-llvm-63595ddcb5c20490c0f8e4f6e8be2aec5a8bc970.tar.gz bcm5719-llvm-63595ddcb5c20490c0f8e4f6e8be2aec5a8bc970.zip | |
switch TemplateOrInstantiation to be a PointerUnion, which
simplifies some code.
llvm-svn: 67993
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 2858d479bbb..0fd83efa20a 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/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, |

