Skip to content
Commit dcb312bd authored by Lang Hames's avatar Lang Hames
Browse files

[MC] Plumb unique_ptr<MCELFObjectTargetWriter> through createELFObjectWriter to

ELFObjectWriter's constructor.

Fixes the same ownership issue for ELF that r315245 did for MachO:
ELFObjectWriter takes ownership of its MCELFObjectTargetWriter, so we want to
pass this through to the constructor via a unique_ptr, rather than a raw ptr.

llvm-svn: 315254
parent e0f1541f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment