[llvm] [BOLT][DWARF] Updated DW_AT_comp_dir/DW_AT_dwo_name for DWO TUs. (PR #91486)

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 15:35:28 PDT 2024


================
@@ -203,13 +203,17 @@ class DWARFRewriter {
   using OverriddenSectionsMap = std::unordered_map<DWARFSectionKind, StringRef>;
   /// Output .dwo files.
   void writeDWOFiles(DWARFUnit &, const OverriddenSectionsMap &,
-                     const std::string &, DebugLocWriter &);
+                     const std::string &, DebugLocWriter &,
+                     DebugStrOffsetsWriter &, DebugStrWriter &);
   using KnownSectionsEntry = std::pair<MCSection *, DWARFSectionKind>;
   struct DWPState {
     std::unique_ptr<ToolOutputFile> Out;
     std::unique_ptr<BinaryContext> TmpBC;
     std::unique_ptr<MCStreamer> Streamer;
     std::unique_ptr<DWPStringPool> Strings;
+    /// This is used to store String sections for .dwo files if they are being
----------------
dcci wrote:

so that the comment fits in a single line/it's more readable

https://github.com/llvm/llvm-project/pull/91486


More information about the llvm-commits mailing list