aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-31 21:51:53 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-31 21:51:53 +0000
commited2d17b2d4ae20a83304357d6c84ed10e88bc036 (patch)
treec7f14b12483c4cf6c0bdacc0e15e9e1c4e05120c /utils
parent90498b195ba759cf4f2a98da4e46fb9a2b580396 (diff)
downloadexternal_llvm-ed2d17b2d4ae20a83304357d6c84ed10e88bc036.zip
external_llvm-ed2d17b2d4ae20a83304357d6c84ed10e88bc036.tar.gz
external_llvm-ed2d17b2d4ae20a83304357d6c84ed10e88bc036.tar.bz2
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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp
index fb950d0..dc17f70 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";
}