[llvm] [BOLT][DWARF] Slice .debug_str from the DWP for each CU (PR #159540)
Liu Ke via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 04:19:58 PST 2025
================
@@ -1723,7 +1723,66 @@ StringRef getSectionName(const SectionRef &Section) {
return Name;
}
-// Extracts an appropriate slice if input is DWP.
+// Exctracts some appropriate slices of .debug_str.dwo from DWP.
+// Updates the .debug_str_offets.dwo for CUs.
+void UpdateStrAndStrOffsets(StringRef StrDWOContent,
+ StringRef StrOffsetsContent,
+ SmallVectorImpl<StringRef> &StrDWOOutData,
----------------
Sockke wrote:
This way, it would be more compatible with SmallVectors of any inline capacity. Do you think it would be better to write it like this?
https://github.com/llvm/llvm-project/pull/159540
More information about the llvm-commits
mailing list