commit | 37437af14bb3cd2401cfa45be4a39198db633749 | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Mon Oct 09 23:53:15 2017 +0000 |
committer | Lang Hames <lhames@gmail.com> | Mon Oct 09 23:53:15 2017 +0000 |
tree | de177f469b29c4d45e7d831fc1b8646084bdaef5 | |
parent | 3b8950a6d6b0d0bdb54904dda2cbad9ce16db0cc [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315254 91177308-0d34-0410-b5e6-96231b3b80d8