[lldb] [llvm] [NFC] Ensure MCTargetOptions outlives MCAsmInfo at createMCAsmInfo call sites (PR #180465)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 09:26:14 PST 2026
boomanaiden154 wrote:
> The current state is not ideal.
Do you have a plan to improve beyond #180464? I would think that we could just make `createMCAsmInfo` take a r-value reference to `MCTargetOptions` so that we can transfer ownership without copying. Not if it would be feasible to enforce that by deleting the `MCTargetOptions` copy constructor.
https://github.com/llvm/llvm-project/pull/180465
More information about the llvm-commits
mailing list