diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-08-13 18:12:56 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-08-13 18:12:56 +0000 |
commit | 556b21aa10ee7ffe8724cb0c5f5d5df9bc718ddc (patch) | |
tree | c0a5083d290ea0d5138c674e1a5a8019816b76c9 /llvm/lib/MC/MCMachOStreamer.cpp | |
parent | 1dbb95151b0ed90ba376a1da90a1bd1eb9364e12 (diff) | |
download | bcm5719-llvm-556b21aa10ee7ffe8724cb0c5f5d5df9bc718ddc.tar.gz bcm5719-llvm-556b21aa10ee7ffe8724cb0c5f5d5df9bc718ddc.zip |
Remove and forbid raw_svector_ostream::flush() calls.
After r244870 flush() will only compare two null pointers and return,
doing nothing but wasting run time. The call is not required any more
as the stream and its SmallString are always in sync.
Thanks to David Blaikie for reviewing.
llvm-svn: 244928
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCMachOStreamer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index 116ef094d18..33045d0fcf7 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -443,7 +443,6 @@ void MCMachOStreamer::EmitInstToData(const MCInst &Inst, SmallString<256> Code; raw_svector_ostream VecOS(Code); getAssembler().getEmitter().encodeInstruction(Inst, VecOS, Fixups, STI); - VecOS.flush(); // Add the fixups and data. for (unsigned i = 0, e = Fixups.size(); i != e; ++i) { |