[llvm] Reland: [ORC] Tailor ELF debugger support plugin to load-address patching only (PR #169482)

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 02:55:53 PST 2025


================
@@ -348,6 +348,16 @@ class SimpleSegmentAlloc {
     return Alloc->finalize();
   }
 
+  /// Free allocated memory if finalize won't be called.
+  Error abandon() {
----------------
weliveindetail wrote:

It would be great to add the missing abondon() function here, because otherwise I cannot use the allocation for fixups (in case of errors, I need to free the memory). The context is easier to understand on the individual commit https://github.com/llvm/llvm-project/pull/169482/commits/f1203f207722a9d95c5dd73b6724308a5ef81f5d

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


More information about the llvm-commits mailing list