[MC] Plumb unique_ptr<MCELFObjectTargetWriter> through createELFObjectWriter to
Audit RequiredrL315254

Description

[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.

Details

Auditors
grosbach
Committed
lhamesOct 9 2017, 4:53 PM
Parents
rL315253: Rename OptimizationDiagnosticInfo.h to OptimizationRemarkEmitter.h
Branches
Unknown
Tags
Unknown