[MC] Split the layout part of MCAssembler::finish() into its own method. NFC.
authorFrederic Riss <friss@apple.com>
Wed, 26 Aug 2015 05:09:49 +0000 (05:09 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 26 Aug 2015 05:09:49 +0000 (05:09 +0000)
commit41426aed73eb698a7fb28fd12ae6074e4e7a83c6
treece79257dbbdfb800915a56ee299852a467e94da7
parentbfec0728977969a261349c189377b47b93c8466e
[MC] Split the layout part of MCAssembler::finish() into its own method. NFC.

Split a MCAssembler::layout() method out of MCAssembler::finish(). This allows
running the MCSections layout separately from the streaming of the output
file. This way if a client wants to use MC to generate section contents, but
emit something different than the standard relocatable object files it is
possible (llvm-dsymutil is such a client).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246008 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
lib/MC/MCAssembler.cpp