diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2018-05-21 19:20:29 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-05-21 19:20:29 +0000 |
| commit | dcd7d6c33112db3618798c1c037460cac58d7f9a (patch) | |
| tree | 21a52d71cf6ec2df9a9d299ca4d4559cd4891382 /llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h | |
| parent | a29fe579f48dd1600b21aadae7e90f64d643aef8 (diff) | |
| download | bcm5719-llvm-dcd7d6c33112db3618798c1c037460cac58d7f9a.tar.gz bcm5719-llvm-dcd7d6c33112db3618798c1c037460cac58d7f9a.zip | |
MC: Separate creating a generic object writer from creating a target object writer. NFCI.
With this we gain a little flexibility in how the generic object
writer is created.
Part of PR37466.
Differential Revision: https://reviews.llvm.org/D47045
llvm-svn: 332868
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h')
| -rw-r--r-- | llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h index d497e295e55..86a583b19cf 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendELF.h @@ -24,9 +24,9 @@ public: support::endianness Endian) : ARMAsmBackend(T, STI, Endian), OSABI(OSABI) {} - std::unique_ptr<MCObjectWriter> - createObjectWriter(raw_pwrite_stream &OS) const override { - return createARMELFObjectWriter(OS, OSABI, Endian); + std::unique_ptr<MCObjectTargetWriter> + createObjectTargetWriter() const override { + return createARMELFObjectWriter(OSABI); } }; } |

