diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-31 21:51:53 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-31 21:51:53 +0000 |
commit | ed2d17b2d4ae20a83304357d6c84ed10e88bc036 (patch) | |
tree | c7f14b12483c4cf6c0bdacc0e15e9e1c4e05120c /utils | |
parent | 90498b195ba759cf4f2a98da4e46fb9a2b580396 (diff) |
Don't assign a value to NUM_TARGET_NAMED_SUBREGS.
It was wrong and completely unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index fb950d0607..dc17f70b5c 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -441,8 +441,7 @@ RegisterInfoEmitter::runTargetHeader(raw_ostream &OS, CodeGenTarget &Target, OS << "enum {\n NoSubRegister,\n"; for (unsigned i = 0, e = RegBank.getNumNamedIndices(); i != e; ++i) OS << " " << SubRegIndices[i]->getName() << ",\t// " << i+1 << "\n"; - OS << " NUM_TARGET_NAMED_SUBREGS = " << SubRegIndices.size()+1 << "\n"; - OS << "};\n"; + OS << " NUM_TARGET_NAMED_SUBREGS\n};\n"; if (!Namespace.empty()) OS << "}\n"; } |