forked from OSchip/llvm-project
emit an enum value for the # of target registers.
llvm-svn: 34624
This commit is contained in:
parent
1db979bae8
commit
68a8bcce99
|
@ -38,8 +38,8 @@ void RegisterInfoEmitter::runEnums(std::ostream &OS) {
|
|||
OS << " enum {\n NoRegister,\n";
|
||||
|
||||
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";
|
||||
if (!Namespace.empty())
|
||||
OS << "}\n";
|
||||
|
|
Loading…
Reference in New Issue