diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2018-05-21 18:11:35 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-05-21 18:11:35 +0000 |
| commit | 147db3e628369d5d8cfee192647912ebaea28f0e (patch) | |
| tree | 7d7e7c5165da3f8661810aabe8c564115fa46ef2 /llvm/tools | |
| parent | 571a3301aeaaddcb1d784d8f27957170fe0cfd15 (diff) | |
| download | bcm5719-llvm-147db3e628369d5d8cfee192647912ebaea28f0e.tar.gz bcm5719-llvm-147db3e628369d5d8cfee192647912ebaea28f0e.zip | |
MC: Change MCAssembler::writeSectionData and writeFragmentPadding to take a raw_ostream. NFCI.
Also clean up a couple of hacks where we were writing the section
contents to another stream by setting the object writer's stream,
writing and setting it back.
Part of PR37466.
Differential Revision: https://reviews.llvm.org/D47038
llvm-svn: 332858
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/dsymutil/MachOUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/dsymutil/MachOUtils.cpp b/llvm/tools/dsymutil/MachOUtils.cpp index 3042e708ca4..9d100bfeab0 100644 --- a/llvm/tools/dsymutil/MachOUtils.cpp +++ b/llvm/tools/dsymutil/MachOUtils.cpp @@ -516,7 +516,7 @@ bool generateDsymCompanion(const DebugMap &DM, MCStreamer &MS, uint64_t Pos = OutFile.tell(); Writer.WriteZeros(alignTo(Pos, Sec.getAlignment()) - Pos); - MCAsm.writeSectionData(&Sec, Layout); + MCAsm.writeSectionData(OutFile, &Sec, Layout); } return true; |

