diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2014-01-28 23:13:07 +0000 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2014-01-28 23:13:07 +0000 |
| commit | 9784cef38dd71ae37ccc419d7e1e10bafe59e9df (patch) | |
| tree | f6c4fc73003967df2766cd334ee7bf6dcae653dd /llvm/lib/MC/MCObjectStreamer.cpp | |
| parent | f5199f68f2e636b5bc2a9f976fd19cc89aad10ab (diff) | |
| download | bcm5719-llvm-9784cef38dd71ae37ccc419d7e1e10bafe59e9df.tar.gz bcm5719-llvm-9784cef38dd71ae37ccc419d7e1e10bafe59e9df.zip | |
Explictly pass MCSubtargetInfo to MCCodeEmitter::EncodeInstruction()
llvm-svn: 200348
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCObjectStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index 689c4230aac..f00231e3d31 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -235,7 +235,8 @@ void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst, SmallString<128> Code; raw_svector_ostream VecOS(Code); - getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, IF->getFixups()); + getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, IF->getFixups(), + STI); VecOS.flush(); IF->getContents().append(Code.begin(), Code.end()); } |

