mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Explictly pass MCSubtargetInfo to MCCodeEmitter::EncodeInstruction()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
41c8ba9d61
commit
2ddea4b44d
18 files changed
+52
-30
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user