[llvm] MC: Store fragment content and fixups out-of-line (PR #146307)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 29 23:29:09 PDT 2025
================
@@ -125,6 +119,13 @@ class MCEncodedFragment : public MCFragment {
/// It must be non-null for instructions.
const MCSubtargetInfo *STI = nullptr;
+private:
+ uint32_t ContentStart = 0;
+ uint32_t ContentSize = 0;
----------------
aengelke wrote:
One more comment: This limits the size of actual section contents to 2**32-1, I think we supported larger sections before? Maybe we should use size_t here. Depending on usage, we might also want to store start/end instead of start/size to simplify checks w.r.t. ContentStorage.size().
https://github.com/llvm/llvm-project/pull/146307
More information about the llvm-commits
mailing list