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/MCPureStreamer.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/MCPureStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCPureStreamer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCPureStreamer.cpp b/llvm/lib/MC/MCPureStreamer.cpp index 26d0765e15d..9c6ce2ef74e 100644 --- a/llvm/lib/MC/MCPureStreamer.cpp +++ b/llvm/lib/MC/MCPureStreamer.cpp @@ -191,7 +191,7 @@ void MCPureStreamer::EmitInstToFragment(const MCInst &Inst, SmallVector<MCFixup, 4> Fixups; SmallString<256> Code; raw_svector_ostream VecOS(Code); - getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups); + getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups, STI); VecOS.flush(); IF->getContents() = Code; @@ -205,7 +205,7 @@ void MCPureStreamer::EmitInstToData(const MCInst &Inst, SmallVector<MCFixup, 4> Fixups; SmallString<256> Code; raw_svector_ostream VecOS(Code); - getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups); + getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups, STI); VecOS.flush(); // Add the fixups and data. |