[MC] Factor MCObjectStreamer::addFragmentAtoms out of MachO streamer.
authorSam Clegg <sbc@chromium.org>
Wed, 2 May 2018 23:01:10 +0000 (23:01 +0000)
committerSam Clegg <sbc@chromium.org>
Wed, 2 May 2018 23:01:10 +0000 (23:01 +0000)
commit87cc4dbde7446bfb5735f03c984ffb3983dc26be
tree72c1497608a7bec8b88a100815ef46f59bf4161b
parent9325c38fdb55db041ac19f24f7cafb5943e58cae
[MC] Factor MCObjectStreamer::addFragmentAtoms out of MachO streamer.

This code previously existed only in MCMachOStreamer but is
useful for WebAssembly too.  See: D46335

Differential Revision: https://reviews.llvm.org/D46297

llvm-svn: 331412
llvm/include/llvm/MC/MCObjectStreamer.h
llvm/lib/MC/MCMachOStreamer.cpp
llvm/lib/MC/MCObjectStreamer.cpp
llvm/lib/MC/MCWasmStreamer.cpp