diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-23 10:39:21 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-23 10:39:21 +0000 |
commit | 5b9e7ef627aa1e2f49a6ee85e718199799841f7e (patch) | |
tree | 9edcdedfb5168b6eae7a27cc4721d999ff77441f /utils | |
parent | e317bcc74c1f317f913e9b05db385901cfc54d0b (diff) | |
download | external_llvm-5b9e7ef627aa1e2f49a6ee85e718199799841f7e.zip external_llvm-5b9e7ef627aa1e2f49a6ee85e718199799841f7e.tar.gz external_llvm-5b9e7ef627aa1e2f49a6ee85e718199799841f7e.tar.bz2 |
Try to fix MSVC build after r79846.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 5 | ||||
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index f0a8c4d..ecee8db 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1331,7 +1331,7 @@ CodeGenDAGPatterns::CodeGenDAGPatterns(RecordKeeper &R) : Records(R) { } CodeGenDAGPatterns::~CodeGenDAGPatterns() { - for (std::map<Record*, TreePattern*>::iterator I = PatternFragments.begin(), + for (pf_iterator I = PatternFragments.begin(), E = PatternFragments.end(); I != E; ++I) delete I->second; } @@ -1983,7 +1983,8 @@ void CodeGenDAGPatterns::ParseInstructions() { } // If we can, convert the instructions to be patterns that are matched! - for (std::map<Record*, DAGInstruction>::iterator II = Instructions.begin(), + for (std::map<Record*, DAGInstruction, RecordPtrCmp>::iterator II = + Instructions.begin(), E = Instructions.end(); II != E; ++II) { DAGInstruction &TheInst = II->second; const TreePattern *I = TheInst.getPattern(); diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index f7198d8..ba39809 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -509,7 +509,8 @@ public: return SDNodeXForms.find(R)->second; } - typedef std::map<Record*, NodeXForm>::const_iterator nx_iterator; + typedef std::map<Record*, NodeXForm, RecordPtrCmp>::const_iterator + nx_iterator; nx_iterator nx_begin() const { return SDNodeXForms.begin(); } nx_iterator nx_end() const { return SDNodeXForms.end(); } @@ -556,7 +557,8 @@ public: assert(PatternFragments.count(R) && "Invalid pattern fragment request!"); return PatternFragments.find(R)->second; } - typedef std::map<Record*, TreePattern*>::const_iterator pf_iterator; + typedef std::map<Record*, TreePattern*, RecordPtrCmp>::const_iterator + pf_iterator; pf_iterator pf_begin() const { return PatternFragments.begin(); } pf_iterator pf_end() const { return PatternFragments.end(); } |