From ca796402be8b4df9b359e934c7ea8e283a2e8b03 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 11 Mar 2008 00:00:23 +0000 Subject: [PATCH] emit an ID # for each regclass ID. Chris doesn't like to have to count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48200 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/RegisterInfoEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index c9f8d0ac220..9577580e2a7 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -77,7 +77,7 @@ void RegisterInfoEmitter::runHeader(std::ostream &OS) { for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) { if (i) OS << ",\n"; OS << " " << RegisterClasses[i].getName() << "RegClassID"; - if (!i) OS << " = 1"; + OS << " = " << (i+1); } OS << "\n };\n\n"; -- 2.34.1