Skip to content

Commit 54160ed

Browse files
author
Davide Italiano
committed
[ClangASTContext] Remove unused functions [swift-lldb only].
Another step to reduce the diff between upstream and github. apple-llvm-split-commit: e5f65289210215433d1f88bec1449b73c7bec386 apple-llvm-split-dir: lldb/
1 parent d72700a commit 54160ed

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

lldb/source/Symbol/ClangASTContext.cpp

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,30 +1416,6 @@ ClangASTContext::GetTranslationUnitDecl(clang::ASTContext *ast) {
14161416
return ast->getTranslationUnitDecl();
14171417
}
14181418

1419-
CompilerType ClangASTContext::CopyType(const CompilerType &src) {
1420-
clang::ASTContext *dst_clang_ast = getASTContext();
1421-
if (dst_clang_ast) {
1422-
FileSystemOptions file_system_options;
1423-
ClangASTContext *src_ast =
1424-
llvm::dyn_cast_or_null<ClangASTContext>(src.GetTypeSystem());
1425-
if (src_ast) {
1426-
clang::ASTContext *src_clang_ast = src_ast->getASTContext();
1427-
if (src_clang_ast) {
1428-
if (src_clang_ast == dst_clang_ast)
1429-
return src; // We already are in the right AST, no need to copy
1430-
else {
1431-
FileManager file_manager(file_system_options);
1432-
ASTImporter importer(*dst_clang_ast, file_manager, *src_clang_ast,
1433-
file_manager, false);
1434-
QualType dst_qual_type(importer.Import(ClangUtil::GetQualType(src)));
1435-
return CompilerType(this, dst_qual_type.getAsOpaquePtr());
1436-
}
1437-
}
1438-
}
1439-
}
1440-
return CompilerType();
1441-
}
1442-
14431419
clang::Decl *ClangASTContext::CopyDecl(ASTContext *dst_ast, ASTContext *src_ast,
14441420
clang::Decl *source_decl) {
14451421
FileSystemOptions file_system_options;
@@ -5069,15 +5045,6 @@ ClangASTContext::GetUnboundType(lldb::opaque_compiler_type_t type) {
50695045
return CompilerType(getASTContext(), GetQualType(type));
50705046
}
50715047

5072-
CompilerType ClangASTContext::RemoveFastQualifiers(const CompilerType &type) {
5073-
if (ClangUtil::IsClangType(type)) {
5074-
clang::QualType qual_type(ClangUtil::GetQualType(type));
5075-
qual_type.getQualifiers().removeFastQualifiers();
5076-
return CompilerType(type.GetTypeSystem(), qual_type.getAsOpaquePtr());
5077-
}
5078-
return type;
5079-
}
5080-
50815048
//----------------------------------------------------------------------
50825049
// Create related types using the current type's AST
50835050
//----------------------------------------------------------------------

0 commit comments

Comments
 (0)