{
// delete all the graphs
for (const_iterator I = begin(); I != end(); ++I)
- delete I->second;
+ delete *I;
}
<< "' ========\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";
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() << "] -> ["
{
// delete all the graphs
for (const_iterator I = begin(); I != end(); ++I)
- delete I->second;
+ delete *I;
}
<< "' ========\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";
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() << "] -> ["