emit an enum value for the # of target registers.

llvm-svn: 34624
This commit is contained in:
Chris Lattner 2007-02-26 03:34:38 +00:00
parent 1db979bae8
commit 68a8bcce99
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ void RegisterInfoEmitter::runEnums(std::ostream &OS) {
OS << " enum {\n NoRegister,\n"; OS << " enum {\n NoRegister,\n";
for (unsigned i = 0, e = Registers.size(); i != e; ++i) for (unsigned i = 0, e = Registers.size(); i != e; ++i)
OS << " " << Registers[i].getName() << (i != (e-1) ? ", \t// " : " \t// ") << i+1 << "\n"; OS << " " << Registers[i].getName() << ", \t// " << i+1 << "\n";
OS << " NUM_TARGET_REGS \t// " << Registers.size()+1 << "\n";
OS << " };\n"; OS << " };\n";
if (!Namespace.empty()) if (!Namespace.empty())
OS << "}\n"; OS << "}\n";