This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Change definition of DisassemblerCreateInstance
ClosedPublic

Authored by bulbazord on May 9 2023, 5:06 PM.

Details

Summary

DissassemblerCreateInstance is a function pointer whos return type is
Disassembler *. But Disassembler::FindPlugin always returns a
DisassemblerSP, so there's no reason why we can't just create a
DisassemblerSP in the first place.

Diff Detail

Event Timeline

bulbazord created this revision.May 9 2023, 5:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 5:06 PM
bulbazord requested review of this revision.May 9 2023, 5:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 5:06 PM
mib accepted this revision.May 15 2023, 1:38 PM
This revision is now accepted and ready to land.May 15 2023, 1:38 PM
This revision was automatically updated to reflect the committed changes.