[llvm-commits] [llvm] r135816 - /llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Jul 22 15:01:58 PDT 2011
Author: d0k
Date: Fri Jul 22 17:01:58 2011
New Revision: 135816
URL: http://llvm.org/viewvc/llvm-project?rev=135816&view=rev
Log:
Use the enum value for RegClassIDs.
Modified:
llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=135816&r1=135815&r2=135816&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Fri Jul 22 17:01:58 2011
@@ -328,8 +328,10 @@
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
const CodeGenRegisterClass &RC = RegisterClasses[rc];
- OS << " MCRegisterClass("
- << rc << ", "
+ OS << " MCRegisterClass(";
+ if (!RC.Namespace.empty())
+ OS << RC.Namespace << "::";
+ OS << RC.getName() + "RegClassID" << ", "
<< '\"' << RC.getName() << "\", "
<< RC.SpillSize/8 << ", "
<< RC.SpillAlignment/8 << ", "
More information about the llvm-commits
mailing list