aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-04-10 21:25:35 -0700
committerGitHub <noreply@github.com>2025-04-10 21:25:35 -0700
commitc04d9d57ee4c116ecc1222b1f4458a21be13ac15 (patch)
treed46fd3bc6c2967c17a19fb0aa4ffa260aca59bd9 /llvm/lib/CodeGen/MachineOperand.cpp
parentba93fe97c235ddbf8e5d7f76b3cb48d9e0839ba0 (diff)
downloadllvm-c04d9d57ee4c116ecc1222b1f4458a21be13ac15.zip
llvm-c04d9d57ee4c116ecc1222b1f4458a21be13ac15.tar.gz
llvm-c04d9d57ee4c116ecc1222b1f4458a21be13ac15.tar.bz2
MCAsmStreamer: Replace the MCInstPrinter * parameter with unique_ptr
... to clarify ownership, aligning with other parameters. Using `std::unique_ptr` encourages users to manage `createMCInstPrinter` with a unique_ptr instead of a raw pointer, reducing the risk of memory leaks. * llvm-mc: fix a leak and update llvm/test/tools/llvm-mc/disassembler-options.test * #121078 copied the llvm-mc code to CodeGenTargetMachineImpl and made the same mistake. Fixed by 2b8cc651dca0c000ee18ec79bd5de4826156c9d6 Using unique_ptr requires #include MCInstPrinter.h in a few translation units. * Delete a createAsmStreamer overload I deprecated in 2024 * SystemZMCTargetDesc.cpp: rename to `createSystemZAsmStreamer` to fix an overload conflict. Pull Request: https://github.com/llvm/llvm-project/pull/135128
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions