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 | cf8a98f2c20811c03b3cb7f0c6e00e141f9db24f (patch) | |
tree | b0997f4099ea53f47476e44f249aef392c177ae5 /lib/CodeGen | |
parent | ded1bf8cd8e5e289e038b8f2b30801d25fab6875 (diff) | |
download | external_llvm-cf8a98f2c20811c03b3cb7f0c6e00e141f9db24f.zip external_llvm-cf8a98f2c20811c03b3cb7f0c6e00e141f9db24f.tar.gz external_llvm-cf8a98f2c20811c03b3cb7f0c6e00e141f9db24f.tar.bz2 |
Minor changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedGraph.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 890a911..e67ba93 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/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() << "] -> [" |