[llvm-commits] [llvm] r129689 - /llvm/trunk/lib/MC/MCObjectStreamer.cpp
Eli Friedman
eli.friedman at gmail.com
Sun Apr 17 22:54:54 PDT 2011
Author: efriedma
Date: Mon Apr 18 00:54:54 2011
New Revision: 129689
URL: http://llvm.org/viewvc/llvm-project?rev=129689&view=rev
Log:
Revert r129688; it's breaking buildbots.
Modified:
llvm/trunk/lib/MC/MCObjectStreamer.cpp
Modified: llvm/trunk/lib/MC/MCObjectStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectStreamer.cpp?rev=129689&r1=129688&r2=129689&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectStreamer.cpp Mon Apr 18 00:54:54 2011
@@ -191,10 +191,8 @@
void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) {
MCInstFragment *IF = new MCInstFragment(Inst, getCurrentSectionData());
- SmallString<128> Code;
- raw_svector_ostream VecOS(Code);
+ raw_svector_ostream VecOS(IF->getCode());
getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, IF->getFixups());
- IF->getCode().append(Code.begin(), Code.end());
}
static const MCExpr *BuildSymbolDiff(MCContext &Context,
More information about the llvm-commits
mailing list