summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 20:49:04 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 20:49:04 +0000
commitbdfd3285153540b03cf5516bab9b4aa955dc7b1b (patch)
tree3a54069f762390eb90af1f7e369b19f20c85418a /include/llvm
parent5ff562e2c08a719c4f4f5280bff2da88fc9d5e8c (diff)
downloadllvm-bdfd3285153540b03cf5516bab9b4aa955dc7b1b.tar.gz
llvm-bdfd3285153540b03cf5516bab9b4aa955dc7b1b.tar.bz2
llvm-bdfd3285153540b03cf5516bab9b4aa955dc7b1b.tar.xz
Clean up MethodLiveVarInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h9
-rw-r--r--include/llvm/CodeGen/FunctionLiveVarInfo.h9
2 files changed, 6 insertions, 12 deletions
diff --git a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h
index 9e44be4642..d126b6e03e 100644
--- a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h
+++ b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h
@@ -72,9 +72,6 @@ static const int DEBUG_LV = 0;
class MethodLiveVarInfo : public MethodPass {
- // Live var anal is done on this method - set by constructor
- const Method *Meth;
-
// A map betwn the BasicBlock and BBLiveVar
BBToBBLiveVarMapType BB2BBLVMap;
@@ -88,10 +85,10 @@ class MethodLiveVarInfo : public MethodPass {
// --------- private methods -----------------------------------------
// constructs BBLiveVars and init Def and In sets
- void constructBBs();
+ void constructBBs(const Method *M);
// do one backward pass over the CFG
- bool doSingleBackwardPass();
+ bool doSingleBackwardPass(const Method *M);
// calculates live var sets for instructions in a BB
void calcLiveVarSetsForBB(const BasicBlock *BB);
@@ -100,7 +97,7 @@ class MethodLiveVarInfo : public MethodPass {
public:
static AnalysisID ID; // We are an analysis, we must have an ID
- MethodLiveVarInfo(AnalysisID id = ID) : Meth(0) { assert(id == ID); }
+ MethodLiveVarInfo(AnalysisID id = ID) { assert(id == ID); }
~MethodLiveVarInfo() { releaseMemory(); }
// --------- Implement the MethodPass interface ----------------------
diff --git a/include/llvm/CodeGen/FunctionLiveVarInfo.h b/include/llvm/CodeGen/FunctionLiveVarInfo.h
index 9e44be4642..d126b6e03e 100644
--- a/include/llvm/CodeGen/FunctionLiveVarInfo.h
+++ b/include/llvm/CodeGen/FunctionLiveVarInfo.h
@@ -72,9 +72,6 @@ static const int DEBUG_LV = 0;
class MethodLiveVarInfo : public MethodPass {
- // Live var anal is done on this method - set by constructor
- const Method *Meth;
-
// A map betwn the BasicBlock and BBLiveVar
BBToBBLiveVarMapType BB2BBLVMap;
@@ -88,10 +85,10 @@ class MethodLiveVarInfo : public MethodPass {
// --------- private methods -----------------------------------------
// constructs BBLiveVars and init Def and In sets
- void constructBBs();
+ void constructBBs(const Method *M);
// do one backward pass over the CFG
- bool doSingleBackwardPass();
+ bool doSingleBackwardPass(const Method *M);
// calculates live var sets for instructions in a BB
void calcLiveVarSetsForBB(const BasicBlock *BB);
@@ -100,7 +97,7 @@ class MethodLiveVarInfo : public MethodPass {
public:
static AnalysisID ID; // We are an analysis, we must have an ID
- MethodLiveVarInfo(AnalysisID id = ID) : Meth(0) { assert(id == ID); }
+ MethodLiveVarInfo(AnalysisID id = ID) { assert(id == ID); }
~MethodLiveVarInfo() { releaseMemory(); }
// --------- Implement the MethodPass interface ----------------------