[llvm] [BOLT][DWARF][NFC] Replace usages of GDBIndex functions (PR #94701)
Sayhaan Siddiqui via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 11:19:00 PDT 2024
================
@@ -731,7 +735,8 @@ void DWARFRewriter::updateDebugInfo() {
auto TheTriple = std::make_unique<Triple>(File->makeTriple());
std::unique_ptr<DIEStreamer> Streamer =
createDIEStreamer(*TheTriple, *ObjOS, "TypeStreamer", DIEBlder, *this);
----------------
sayhaan wrote:
Wouldn't we still have to pass it through emitUnit? The flow is finalizeTypeSections -> emitUnit -> DIEStreamer::emitUnit -> emitUnitHeader -> emitTypeUnitHeader where GDBIndex::addGDBTypeUnitEntry is called. emitTypeUnitHeader is private so we wouldn't be able to call it from createDIEStreamer.
https://github.com/llvm/llvm-project/pull/94701
More information about the llvm-commits
mailing list