diff options
author | Cedric Venet <cedric.venet@laposte.net> | 2008-08-26 19:49:04 +0000 |
---|---|---|
committer | Cedric Venet <cedric.venet@laposte.net> | 2008-08-26 19:49:04 +0000 |
commit | c93457053cfecb24105ee3800c8e53921b950d8f (patch) | |
tree | 3d0ce32ff80f7b505516570c37903141d4e17f5a /utils | |
parent | 77a218765ac85b2e0c6ce01bf8a7b07dfe80bead (diff) | |
download | external_llvm-c93457053cfecb24105ee3800c8e53921b950d8f.zip external_llvm-c93457053cfecb24105ee3800c8e53921b950d8f.tar.gz external_llvm-c93457053cfecb24105ee3800c8e53921b950d8f.tar.bz2 |
- small bug corrected: incorrect iterator type.
- fix to please VS: add a return after an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 45be66f..6c1d8ab 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -547,7 +547,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) { OS << " const unsigned Empty_AliasSet[] = { 0 };\n"; // Loop over all of the registers which have aliases, emitting the alias list // to memory. - for (std::map<Record*, std::set<Record*> >::iterator + for (std::map<Record*, std::set<Record*>, LessRecord >::iterator I = RegisterAliases.begin(), E = RegisterAliases.end(); I != E; ++I) { OS << " const unsigned " << I->first->getName() << "_AliasSet[] = { "; for (std::set<Record*>::iterator ASI = I->second.begin(), @@ -584,7 +584,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) { OS << " const unsigned Empty_SuperRegsSet[] = { 0 };\n"; // Loop over all of the registers which have super-registers, emitting the // super-registers list to memory. - for (std::map<Record*, std::set<Record*> >::iterator + for (std::map<Record*, std::set<Record*>, LessRecord >::iterator I = RegisterSuperRegs.begin(), E = RegisterSuperRegs.end(); I != E; ++I) { OS << " const unsigned " << I->first->getName() << "_SuperRegsSet[] = { "; |