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.

Hello,