This caused linker errors when linking both libLLVMX86Desc and libLLVMX86CodeGen
into a single binary (for example when building a monolithic libLLVM shared library).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133791
91177308-0d34-0410-b5e6-
96231b3b80d8
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";