diff options
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCObjectStreamer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index afe5da6e5fbb..a72e34fe6fd3 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -393,10 +393,8 @@ void MCObjectStreamer::emitInstToFragment(const MCInst &Inst, getContext().allocFragment<MCRelaxableFragment>(Inst, STI); insert(IF); - SmallString<128> Code; - getAssembler().getEmitter().encodeInstruction(Inst, Code, IF->getFixups(), - STI); - IF->getContents().append(Code.begin(), Code.end()); + getAssembler().getEmitter().encodeInstruction(Inst, IF->getContents(), + IF->getFixups(), STI); } #ifndef NDEBUG |
