[Lldb-commits] [lldb] [lldb][ClangASTImporter][NFC] Emit a log message when we break MapImported invariant (PR #112748)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 17 23:53:12 PDT 2024
================
@@ -1158,11 +1175,7 @@ void ClangASTImporter::ASTImporterDelegate::ImportDefinitionTo(
to_tag->setCompleteDefinition(from_tag->isCompleteDefinition());
if (Log *log_ast = GetLog(LLDBLog::AST)) {
- std::string name_string;
- if (NamedDecl *from_named_decl = dyn_cast<clang::NamedDecl>(from)) {
- llvm::raw_string_ostream name_stream(name_string);
- from_named_decl->printName(name_stream);
- }
+ std::string name_string = getDeclName(from);
----------------
labath wrote:
You might as well put this call directly into the log message (line 1184)
https://github.com/llvm/llvm-project/pull/112748
More information about the lldb-commits
mailing list