diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-07 20:49:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-07 20:49:59 +0000 |
| commit | 62b7fd136e69426ce2655e4cda3e989ccd83ab6a (patch) | |
| tree | 57d9202d4dd7e3d248f5f4c5717d0c55ec62e43f /llvm/lib/CodeGen/InstrSched/SchedGraph.cpp | |
| parent | 53a46fb75983cad20b309d920d59d10a6580a332 (diff) | |
| download | bcm5719-llvm-62b7fd136e69426ce2655e4cda3e989ccd83ab6a.tar.gz bcm5719-llvm-62b7fd136e69426ce2655e4cda3e989ccd83ab6a.zip | |
Change references to the Method class to be references to the Function
class. The Method class is obsolete (renamed) and all references to it
are being converted over to Function.
llvm-svn: 2144
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/SchedGraph.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedGraph.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp index e67ba93f20c..daf4a49bb83 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -20,7 +20,7 @@ #include "llvm/Target/MachineRegInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/BasicBlock.h" -#include "llvm/Method.h" +#include "llvm/Function.h" #include "llvm/iOther.h" #include "Support/StringExtras.h" #include "Support/STLExtras.h" @@ -955,9 +955,9 @@ SchedGraph::buildGraph(const TargetMachine& target) // /*ctor*/ -SchedGraphSet::SchedGraphSet(const Method* _method, +SchedGraphSet::SchedGraphSet(const Function* _function, const TargetMachine& target) : - method(_method) + method(_function) { buildGraphsForMethod(method, target); } @@ -975,23 +975,23 @@ SchedGraphSet::~SchedGraphSet() void SchedGraphSet::dump() const { - cerr << "======== Sched graphs for method `" << method->getName() + cerr << "======== Sched graphs for function `" << method->getName() << "' ========\n\n"; for (const_iterator I=begin(); I != end(); ++I) (*I)->dump(); - cerr << "\n====== End graphs for method `" << method->getName() + cerr << "\n====== End graphs for function `" << method->getName() << "' ========\n\n"; } void -SchedGraphSet::buildGraphsForMethod(const Method *method, +SchedGraphSet::buildGraphsForMethod(const Function *F, const TargetMachine& target) { - for (Method::const_iterator BI = method->begin(); BI != method->end(); ++BI) - this->addGraph(new SchedGraph(*BI, target)); + for (Function::const_iterator BI = F->begin(); BI != F->end(); ++BI) + addGraph(new SchedGraph(*BI, target)); } |

