Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Merge from mainline
Browse files Browse the repository at this point in the history
Try to fix MSVC build after r79846.


git-svn-id: http://llvm.org/svn/llvm-project/llvm/branches/release_26@80544 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Tanya Lattner committed Aug 31, 2009
1 parent 712cfe5 commit 5eb7402
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions utils/TableGen/CodeGenDAGPatterns.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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();
Expand Down
6 changes: 4 additions & 2 deletions utils/TableGen/CodeGenDAGPatterns.h
Expand Up @@ -509,7 +509,8 @@ class CodeGenDAGPatterns {
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(); }

Expand Down Expand Up @@ -556,7 +557,8 @@ class CodeGenDAGPatterns {
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(); }

Expand Down

0 comments on commit 5eb7402

Please sign in to comment.