diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-24 03:40:59 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-24 03:40:59 +0000 |
commit | 90039d0ab9adc45c86a378a90fa164ad4af6c853 (patch) | |
tree | ccf3c1f643f9610312149bc562601135003af1e5 /llvm/lib/CodeGen/InstrSched/SchedGraph.cpp | |
parent | 31a5d3a4754d55757ff7f2ef3889655ebe0f4f08 (diff) | |
download | bcm5719-llvm-90039d0ab9adc45c86a378a90fa164ad4af6c853.tar.gz bcm5719-llvm-90039d0ab9adc45c86a378a90fa164ad4af6c853.zip |
Minor changes.
llvm-svn: 1971
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/SchedGraph.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedGraph.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp index 890a911c488..e67ba93f20c 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -968,7 +968,7 @@ SchedGraphSet::~SchedGraphSet() { // delete all the graphs for (const_iterator I = begin(); I != end(); ++I) - delete I->second; + delete *I; } @@ -979,7 +979,7 @@ SchedGraphSet::dump() const << "' ========\n\n"; for (const_iterator I=begin(); I != end(); ++I) - I->second->dump(); + (*I)->dump(); cerr << "\n====== End graphs for method `" << method->getName() << "' ========\n\n"; @@ -991,14 +991,10 @@ SchedGraphSet::buildGraphsForMethod(const Method *method, const TargetMachine& target) { for (Method::const_iterator BI = method->begin(); BI != method->end(); ++BI) - { - SchedGraph* graph = new SchedGraph(*BI, target); - this->noteGraphForBlock(*BI, graph); - } + this->addGraph(new SchedGraph(*BI, target)); } - std::ostream &operator<<(std::ostream &os, const SchedGraphEdge& edge) { os << "edge [" << edge.src->getNodeId() << "] -> [" |