diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-12-23 12:03:43 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-23 12:11:26 +0100 |
commit | a175c6a6f6bd98a5afc3bb90b41362e812134309 (patch) | |
tree | 3186ca34997353b8d5f70d2efd2c2db14c74dd3d /lldb/source/Symbol/ClangASTContext.cpp | |
parent | 76d294cb8744b8b15a72d5adb2d435d2265ea9d7 (diff) | |
download | bcm5719-llvm-a175c6a6f6bd98a5afc3bb90b41362e812134309.tar.gz bcm5719-llvm-a175c6a6f6bd98a5afc3bb90b41362e812134309.zip |
[lldb][NFC] Remove wrong and unused ClangASTContext::CopyDecl method
Diffstat (limited to 'lldb/source/Symbol/ClangASTContext.cpp')
-rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 65d73d5f682..ae5fe561528 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -1153,22 +1153,6 @@ CompilerType ClangASTContext::GetCStringType(bool is_const) { return CompilerType(this, ast.getPointerType(char_type).getAsOpaquePtr()); } -clang::Decl *ClangASTContext::CopyDecl(ASTContext *dst_ast, ASTContext *src_ast, - clang::Decl *source_decl) { - FileSystemOptions file_system_options; - FileManager file_manager(file_system_options); - ASTImporter importer(*dst_ast, file_manager, *src_ast, file_manager, false); - - if (llvm::Expected<clang::Decl *> ret_or_error = - importer.Import(source_decl)) { - return *ret_or_error; - } else { - Log *log = lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS); - LLDB_LOG_ERROR(log, ret_or_error.takeError(), "Couldn't import decl: {0}"); - return nullptr; - } -} - bool ClangASTContext::AreTypesSame(CompilerType type1, CompilerType type2, bool ignore_qualifiers) { ClangASTContext *ast = |