diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-31 21:44:11 +0000 | 
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-31 21:44:11 +0000 | 
| commit | 9a44ad70294b148eb031e492eb842751d03667c4 (patch) | |
| tree | 98ccfd6262663aef3f206c60feaf2d5bb089c6c4 /llvm/utils/TableGen/RegisterInfoEmitter.cpp | |
| parent | 9d3f7af8c3387de94b93e60e8e44ce8b91f81e31 (diff) | |
| download | bcm5719-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.cpp | 3 | 
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";  | 

