R600/SI: Fix assertion on infinite loops.
[oota-llvm.git] / lib / Target / R600 / AMDGPUMCInstLower.h
index d7bf827ff249d052666f6df451133b2c914fb944..d7d538e925991244cd77696df5e676debf2bc53e 100644 (file)
 namespace llvm {
 
 class MCInst;
+class MCContext;
 class MachineInstr;
 
 class AMDGPUMCInstLower {
 
+  MCContext &Ctx;
+
 public:
-  AMDGPUMCInstLower();
+  AMDGPUMCInstLower(MCContext &ctx);
 
   /// \brief Lower a MachineInstr to an MCInst
   void lower(const MachineInstr *MI, MCInst &OutMI) const;