diff --git a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h --- a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h @@ -194,14 +194,14 @@ /// 3. Create the generic instruction. /// /// \return true if the translation succeeded. - bool translate(const Instruction &Inst); + virtual bool translate(const Instruction &Inst); /// Materialize \p C into virtual-register \p Reg. The generic instructions /// performing this materialization will be inserted into the entry block of /// the function. /// /// \return true if the materialization succeeded. - bool translate(const Constant &C, Register Reg); + virtual bool translate(const Constant &C, Register Reg); // Translate U as a copy of V. bool translateCopy(const User &U, const Value &V,