summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-26 06:50:46 +0000
committerChris Lattner <sabre@nondot.org>2008-08-26 06:50:46 +0000
commit073ff02e0dce082e453e242cebd4fec7cd952b9d (patch)
treeaeb0b0738fc6496ab916035cc91fb58f7fa640a9 /utils
parent943c0e6fba6d1c4ba9f719639909e224f31e81f1 (diff)
downloadllvm-073ff02e0dce082e453e242cebd4fec7cd952b9d.tar.gz
llvm-073ff02e0dce082e453e242cebd4fec7cd952b9d.tar.bz2
llvm-073ff02e0dce082e453e242cebd4fec7cd952b9d.tar.xz
stabilize more printing, this doesn't cause a problem
in the example attached to PR2590, but is a problem in general. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/RegisterInfoEmitter.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp
index b4b52f3f76..45be66fe8d 100644
--- a/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/utils/TableGen/RegisterInfoEmitter.cpp
@@ -114,10 +114,9 @@ bool isSubRegisterClass(const CodeGenRegisterClass &RC,
}
static void addSuperReg(Record *R, Record *S,
- std::map<Record*, std::set<Record*>,
- LessRecord> &SubRegs,
- std::map<Record*, std::set<Record*> > &SuperRegs,
- std::map<Record*, std::set<Record*> > &Aliases) {
+ std::map<Record*, std::set<Record*>, LessRecord> &SubRegs,
+ std::map<Record*, std::set<Record*>, LessRecord> &SuperRegs,
+ std::map<Record*, std::set<Record*>, LessRecord> &Aliases) {
if (R == S) {
cerr << "Error: recursive sub-register relationship between"
<< " register " << getQualifiedName(R)
@@ -136,10 +135,9 @@ static void addSuperReg(Record *R, Record *S,
}
static void addSubSuperReg(Record *R, Record *S,
- std::map<Record*, std::set<Record*>,
- LessRecord> &SubRegs,
- std::map<Record*, std::set<Record*> > &SuperRegs,
- std::map<Record*, std::set<Record*> > &Aliases) {
+ std::map<Record*, std::set<Record*>, LessRecord> &SubRegs,
+ std::map<Record*, std::set<Record*>, LessRecord> &SuperRegs,
+ std::map<Record*, std::set<Record*>, LessRecord> &Aliases) {
if (R == S) {
cerr << "Error: recursive sub-register relationship between"
<< " register " << getQualifiedName(R)
@@ -421,8 +419,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
// Emit register sub-registers / super-registers, aliases...
std::map<Record*, std::set<Record*>, LessRecord> RegisterSubRegs;
- std::map<Record*, std::set<Record*> > RegisterSuperRegs;
- std::map<Record*, std::set<Record*> > RegisterAliases;
+ std::map<Record*, std::set<Record*>, LessRecord> RegisterSuperRegs;
+ std::map<Record*, std::set<Record*>, LessRecord> RegisterAliases;
std::map<Record*, std::vector<std::pair<int, Record*> > > SubRegVectors;
typedef std::map<Record*, std::vector<int>, LessRecord> DwarfRegNumsMapTy;
DwarfRegNumsMapTy DwarfRegNums;