summaryrefslogtreecommitdiff
path: root/lib/Analysis/IntervalPartition.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-07 20:49:59 +0000
committerChris Lattner <sabre@nondot.org>2002-04-07 20:49:59 +0000
commit2fbfdcffd3e0cf41422aaa6c526c37cb02b81341 (patch)
treec1991eac5d23807b38e5909f861609b243562f70 /lib/Analysis/IntervalPartition.cpp
parentdcc6d4cada290857ee74164816ec3c502c1db7a4 (diff)
downloadllvm-2fbfdcffd3e0cf41422aaa6c526c37cb02b81341.tar.gz
llvm-2fbfdcffd3e0cf41422aaa6c526c37cb02b81341.tar.bz2
llvm-2fbfdcffd3e0cf41422aaa6c526c37cb02b81341.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IntervalPartition.cpp')
-rw-r--r--lib/Analysis/IntervalPartition.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp
index f524d016f1..197bed26d7 100644
--- a/lib/Analysis/IntervalPartition.cpp
+++ b/lib/Analysis/IntervalPartition.cpp
@@ -1,7 +1,7 @@
//===- IntervalPartition.cpp - Interval Partition module code ----*- C++ -*--=//
//
// This file contains the definition of the cfg::IntervalPartition class, which
-// calculates and represent the interval partition of a method.
+// calculates and represent the interval partition of a function.
//
//===----------------------------------------------------------------------===//
@@ -17,7 +17,7 @@ AnalysisID IntervalPartition::ID(AnalysisID::create<IntervalPartition>());
// IntervalPartition Implementation
//===----------------------------------------------------------------------===//
-// destroy - Reset state back to before method was analyzed
+// destroy - Reset state back to before function was analyzed
void IntervalPartition::destroy() {
for_each(begin(), end(), deleter<cfg::Interval>);
IntervalMap.clear();
@@ -50,14 +50,14 @@ void IntervalPartition::updatePredecessors(cfg::Interval *Int) {
}
// IntervalPartition ctor - Build the first level interval partition for the
-// specified method...
+// specified function...
//
-bool IntervalPartition::runOnMethod(Method *M) {
+bool IntervalPartition::runOnMethod(Function *M) {
assert(M->front() && "Cannot operate on prototypes!");
// Pass false to intervals_begin because we take ownership of it's memory
- method_interval_iterator I = intervals_begin(M, false);
- assert(I != intervals_end(M) && "No intervals in method!?!?!");
+ function_interval_iterator I = intervals_begin(M, false);
+ assert(I != intervals_end(M) && "No intervals in function!?!?!");
addIntervalToPartition(RootInterval = *I);
@@ -80,8 +80,8 @@ bool IntervalPartition::runOnMethod(Method *M) {
// distinguish it from a copy constructor. Always pass in false for now.
//
IntervalPartition::IntervalPartition(IntervalPartition &IP, bool) {
- Interval *MethodStart = IP.getRootInterval();
- assert(MethodStart && "Cannot operate on empty IntervalPartitions!");
+ Interval *FunctionStart = IP.getRootInterval();
+ assert(FunctionStart && "Cannot operate on empty IntervalPartitions!");
// Pass false to intervals_begin because we take ownership of it's memory
interval_part_interval_iterator I = intervals_begin(IP, false);