diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 997f1c0b739..5b25f82a570 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -709,7 +709,7 @@ void RegisterInfoEmitter::runDesc(raw_ostream &OS) { OS << "}\n\n"; // End of anonymous namespace... // MCRegisterInfo initialization routine. - OS << "void " << "Init" << TargetName + OS << "static inline void Init" << TargetName << "MCRegisterInfo(MCRegisterInfo *RI) {\n"; OS << " RI->InitMCRegisterInfo(" << TargetName << "RegDesc, " << Regs.size()+1 << ");\n}\n\n";