diff options
author | Fangrui Song <i@maskray.me> | 2025-04-10 21:25:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-10 21:25:35 -0700 |
commit | c04d9d57ee4c116ecc1222b1f4458a21be13ac15 (patch) | |
tree | d46fd3bc6c2967c17a19fb0aa4ffa260aca59bd9 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | ba93fe97c235ddbf8e5d7f76b3cb48d9e0839ba0 (diff) | |
download | llvm-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