diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 18:04:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 18:04:48 +0000 |
commit | d8bbc06c8782866ec2fa3226b0fe2f77c4897b09 (patch) | |
tree | 13809fa8f5497e646227859b40538c1081e9afb8 /lib/Target | |
parent | 30bc0547d9167e1a92bc40e156e35cfd2ee06fe8 (diff) | |
download | external_llvm-d8bbc06c8782866ec2fa3226b0fe2f77c4897b09.zip external_llvm-d8bbc06c8782866ec2fa3226b0fe2f77c4897b09.tar.gz external_llvm-d8bbc06c8782866ec2fa3226b0fe2f77c4897b09.tar.bz2 |
Refix stuff for GCC 2.95, 3.0.4 & 3.1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index 39b3dd0..016aedc 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -79,7 +79,7 @@ private: //---------------------------------------------------------------------- template<class _NodeType> -class ScheduleIterator: public std::forward_iterator<_NodeType, ptrdiff_t> { +class ScheduleIterator : public forward_iterator<_NodeType, ptrdiff_t> { private: unsigned cycleNum; unsigned slotNum; @@ -352,18 +352,18 @@ private: unsigned int totalInstrCount; cycles_t curTime; cycles_t nextEarliestIssueTime; // next cycle we can issue - vector<std::hash_set<const SchedGraphNode*> > choicesForSlot; // indexed by slot# + vector<hash_set<const SchedGraphNode*> > choicesForSlot; // indexed by slot# vector<const SchedGraphNode*> choiceVec; // indexed by node ptr vector<int> numInClass; // indexed by sched class vector<cycles_t> nextEarliestStartTime; // indexed by opCode - std::hash_map<const SchedGraphNode*, DelaySlotInfo*> delaySlotInfoForBranches; + hash_map<const SchedGraphNode*, DelaySlotInfo*> delaySlotInfoForBranches; // indexed by branch node ptr public: SchedulingManager(const TargetMachine& _target, const SchedGraph* graph, SchedPriorities& schedPrio); ~SchedulingManager() { - for (std::hash_map<const SchedGraphNode*, + for (hash_map<const SchedGraphNode*, DelaySlotInfo*>::iterator I = delaySlotInfoForBranches.begin(), E = delaySlotInfoForBranches.end(); I != E; ++I) delete I->second; @@ -422,7 +422,7 @@ public: return choiceVec[i]; } - inline std::hash_set<const SchedGraphNode*>& getChoicesForSlot(unsigned slotNum) { + inline hash_set<const SchedGraphNode*>& getChoicesForSlot(unsigned slotNum) { assert(slotNum < nslots); return choicesForSlot[slotNum]; } @@ -497,7 +497,7 @@ public: inline DelaySlotInfo* getDelaySlotInfoForInstr(const SchedGraphNode* bn, bool createIfMissing=false) { - std::hash_map<const SchedGraphNode*, DelaySlotInfo*>::const_iterator + hash_map<const SchedGraphNode*, DelaySlotInfo*>::const_iterator I = delaySlotInfoForBranches.find(bn); if (I != delaySlotInfoForBranches.end()) return I->second; |