forked from OSchip/llvm-project
R600/SI: Code cleanup
This is a follow-up to r236004 llvm-svn: 236427
This commit is contained in:
parent
4c51174677
commit
b81f4aa952
|
@ -132,9 +132,8 @@ void AMDGPUAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||
SmallVector<char, 16> CodeBytes;
|
||||
raw_svector_ostream CodeStream(CodeBytes);
|
||||
|
||||
MCObjectStreamer *ObjStreamer =
|
||||
static_cast<MCObjectStreamer *>(OutStreamer.get());
|
||||
MCCodeEmitter &InstEmitter = ObjStreamer->getAssembler().getEmitter();
|
||||
auto &ObjStreamer = static_cast<MCObjectStreamer&>(*OutStreamer);
|
||||
MCCodeEmitter &InstEmitter = ObjStreamer.getAssembler().getEmitter();
|
||||
InstEmitter.EncodeInstruction(TmpInst, CodeStream, Fixups,
|
||||
MF->getSubtarget<MCSubtargetInfo>());
|
||||
CodeStream.flush();
|
||||
|
|
Loading…
Reference in New Issue