Varun Patil via llvm-dev
2016-Sep-21 06:07 UTC
[llvm-dev] Error to generate getRegisterName
Dear All, I am facing error to generate getRegisterName, while registering my TOY target to llvm. So It is giving error as follows. *undefined reference to `llvm::TOYInstPrinter::getRegisterName(unsigned int)'* So Please reply me where I am getting wrong and give me solution for it. Thanks and Regards Varun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160921/696c86d2/attachment.html>
Visoiu Mistrih Francis via llvm-dev
2016-Sep-22 00:44 UTC
[llvm-dev] Error to generate getRegisterName
Hello, The 09/21/2016 11:37, Varun Patil via llvm-dev wrote:> I am facing error to generate getRegisterName, while registering my TOY > target to llvm. So It is giving error as follows. > *undefined reference to `llvm::TOYInstPrinter::getRegisterName(unsigned > int)'*`getRegisterName` is a function generated in the `GenAsmWriter.inc` file. In order to use that function, you have to include its definition in `TOYInstPrinter.cpp`. You should take a look at how other targets include their `GenAsmWriter.inc` file in the `InstPrinter`. -- Francis Visoiu Mistrih francis at lse.epita.fr LSE | EPITA