Added a CopyType method to the ASTImporter that

handles opaque QualTypes.

llvm-svn: 144813
This commit is contained in:
Sean Callanan 2011-11-16 19:07:39 +00:00
parent 1a2f9ee3c8
commit 80f7867b51
2 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,11 @@ public:
clang::ASTContext *src_ctx,
clang::QualType type);
lldb::clang_type_t
CopyType (clang::ASTContext *dst_ctx,
clang::ASTContext *src_ctx,
lldb::clang_type_t type);
clang::Decl *
CopyDecl (clang::ASTContext *dst_ctx,
clang::ASTContext *src_ctx,

View File

@ -31,6 +31,14 @@ ClangASTImporter::CopyType (clang::ASTContext *dst_ast,
return QualType();
}
lldb::clang_type_t
ClangASTImporter::CopyType (clang::ASTContext *dst_ast,
clang::ASTContext *src_ast,
lldb::clang_type_t type)
{
return CopyType (dst_ast, src_ast, QualType::getFromOpaquePtr(type)).getAsOpaquePtr();
}
clang::Decl *
ClangASTImporter::CopyDecl (clang::ASTContext *dst_ast,
clang::ASTContext *src_ast,