summaryrefslogtreecommitdiff
path: root/lib/Target/R600/AMDGPUMCInstLower.cpp
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2014-01-28 23:13:07 +0000
committerDavid Woodhouse <dwmw2@infradead.org>2014-01-28 23:13:07 +0000
commit2ddea4b44d7d0f8b016d49bd8a16146f84a2a27e (patch)
treea8e2291865f7ee75b392a8ce5aa085e5f54f0056 /lib/Target/R600/AMDGPUMCInstLower.cpp
parent41c8ba9d61acb86847ad6cf823656e212d8dbbf5 (diff)
downloadllvm-2ddea4b44d7d0f8b016d49bd8a16146f84a2a27e.tar.gz
llvm-2ddea4b44d7d0f8b016d49bd8a16146f84a2a27e.tar.bz2
llvm-2ddea4b44d7d0f8b016d49bd8a16146f84a2a27e.tar.xz
Explictly pass MCSubtargetInfo to MCCodeEmitter::EncodeInstruction()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/AMDGPUMCInstLower.cpp')
-rw-r--r--lib/Target/R600/AMDGPUMCInstLower.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/R600/AMDGPUMCInstLower.cpp b/lib/Target/R600/AMDGPUMCInstLower.cpp
index 82ac0b4c74..4af535cdd1 100644
--- a/lib/Target/R600/AMDGPUMCInstLower.cpp
+++ b/lib/Target/R600/AMDGPUMCInstLower.cpp
@@ -99,7 +99,8 @@ void AMDGPUAsmPrinter::EmitInstruction(const MachineInstr *MI) {
MCObjectStreamer &ObjStreamer = (MCObjectStreamer &)OutStreamer;
MCCodeEmitter &InstEmitter = ObjStreamer.getAssembler().getEmitter();
- InstEmitter.EncodeInstruction(TmpInst, CodeStream, Fixups);
+ InstEmitter.EncodeInstruction(TmpInst, CodeStream, Fixups,
+ TM.getSubtarget<MCSubtargetInfo>());
CodeStream.flush();
HexLines.resize(HexLines.size() + 1);