summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/RegisterInfoEmitter.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-31 21:44:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-31 21:44:11 +0000
commit9a44ad70294b148eb031e492eb842751d03667c4 (patch)
tree98ccfd6262663aef3f206c60feaf2d5bb089c6c4 /llvm/utils/TableGen/RegisterInfoEmitter.cpp
parent9d3f7af8c3387de94b93e60e8e44ce8b91f81e31 (diff)
downloadbcm5719-llvm-9a44ad70294b148eb031e492eb842751d03667c4.tar.gz
bcm5719-llvm-9a44ad70294b148eb031e492eb842751d03667c4.zip
Move the composite map into CodeGenSubRegIndex.
Each SubRegIndex keeps track of how it composes. llvm-svn: 149423
Diffstat (limited to 'llvm/utils/TableGen/RegisterInfoEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/RegisterInfoEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/RegisterInfoEmitter.cpp b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
index 27348964616..fb950d0607e 100644
--- a/llvm/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
@@ -766,8 +766,7 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target,
bool Open = false;
for (unsigned j = 0; j != e; ++j) {
if (CodeGenSubRegIndex *Comp =
- RegBank.getCompositeSubRegIndex(SubRegIndices[i],
- SubRegIndices[j])) {
+ SubRegIndices[i]->compose(SubRegIndices[j])) {
if (!Open) {
OS << " case " << SubRegIndices[i]->getQualifiedName()
<< ": switch(IdxB) {\n default: return IdxB;\n";
OpenPOWER on IntegriCloud