[llvm] [LLVM][DebugInfo] Refactor some code for easier sharing. (PR #82153)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 15:51:18 PDT 2024


================
@@ -552,32 +552,50 @@ DWARFDebugNames::NameIndex::extractAbbrev(uint64_t *Offset) {
   return Abbrev(Code, dwarf::Tag(Tag), AbbrevOffset, std::move(*AttrEncOr));
 }
 
+void llvm::findDebugNamesOffsets(
----------------
dwblaikie wrote:

Probably return the offsets from this function, rather than taking them as an out parameter? It's then clearer that they aren't in/out parameters, or something else more interesting.

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


More information about the llvm-commits mailing list