forked from OSchip/llvm-project
Added a CopyType method to the ASTImporter that
handles opaque QualTypes. llvm-svn: 144813
This commit is contained in:
parent
1a2f9ee3c8
commit
80f7867b51
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue