R600/SI: Code cleanup

This is a follow-up to r236004

llvm-svn: 236427
This commit is contained in:
Tom Stellard 2015-05-04 16:45:08 +00:00
parent 4c51174677
commit b81f4aa952
1 changed files with 2 additions and 3 deletions

View File

@ -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();