summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-18 23:42:08 +0000
committerDan Gohman <gohman@apple.com>2009-12-18 23:42:08 +0000
commitf902c8c1b5ae5aba63f375621dbd6be23bbfadfc (patch)
tree6fe0d6d052250d1c753d62e792f556d9e3be660d /llvm/include
parent022d18fa3f1fe4bc51f68425419fedfbdf10abbc (diff)
downloadbcm5719-llvm-f902c8c1b5ae5aba63f375621dbd6be23bbfadfc.tar.gz
bcm5719-llvm-f902c8c1b5ae5aba63f375621dbd6be23bbfadfc.zip
Eliminate unnecessary LLVMContexts.
llvm-svn: 91729
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/SparsePropagation.h7
-rw-r--r--llvm/include/llvm/Analysis/ValueTracking.h1
-rw-r--r--llvm/include/llvm/Transforms/Utils/Cloning.h1
-rw-r--r--llvm/include/llvm/Transforms/Utils/Local.h1
4 files changed, 2 insertions, 8 deletions
diff --git a/llvm/include/llvm/Analysis/SparsePropagation.h b/llvm/include/llvm/Analysis/SparsePropagation.h
index 677d41d80b2..c3c2f4b0668 100644
--- a/llvm/include/llvm/Analysis/SparsePropagation.h
+++ b/llvm/include/llvm/Analysis/SparsePropagation.h
@@ -30,7 +30,6 @@ namespace llvm {
class BasicBlock;
class Function;
class SparseSolver;
- class LLVMContext;
class raw_ostream;
template<typename T> class SmallVectorImpl;
@@ -120,8 +119,6 @@ class SparseSolver {
/// compute transfer functions.
AbstractLatticeFunction *LatticeFunc;
- LLVMContext *Context;
-
DenseMap<Value*, LatticeVal> ValueState; // The state each value is in.
SmallPtrSet<BasicBlock*, 16> BBExecutable; // The bbs that are executable.
@@ -137,8 +134,8 @@ class SparseSolver {
SparseSolver(const SparseSolver&); // DO NOT IMPLEMENT
void operator=(const SparseSolver&); // DO NOT IMPLEMENT
public:
- explicit SparseSolver(AbstractLatticeFunction *Lattice, LLVMContext *C)
- : LatticeFunc(Lattice), Context(C) {}
+ explicit SparseSolver(AbstractLatticeFunction *Lattice)
+ : LatticeFunc(Lattice) {}
~SparseSolver() {
delete LatticeFunc;
}
diff --git a/llvm/include/llvm/Analysis/ValueTracking.h b/llvm/include/llvm/Analysis/ValueTracking.h
index 5f3c671d0f4..7c673c3c2fb 100644
--- a/llvm/include/llvm/Analysis/ValueTracking.h
+++ b/llvm/include/llvm/Analysis/ValueTracking.h
@@ -24,7 +24,6 @@ namespace llvm {
class Instruction;
class APInt;
class TargetData;
- class LLVMContext;
/// ComputeMaskedBits - Determine which of the bits specified in Mask are
/// known to be either zero or one and return them in the KnownZero/KnownOne
diff --git a/llvm/include/llvm/Transforms/Utils/Cloning.h b/llvm/include/llvm/Transforms/Utils/Cloning.h
index e9099f878b3..7fbbef9c342 100644
--- a/llvm/include/llvm/Transforms/Utils/Cloning.h
+++ b/llvm/include/llvm/Transforms/Utils/Cloning.h
@@ -38,7 +38,6 @@ class CallGraph;
class TargetData;
class Loop;
class LoopInfo;
-class LLVMContext;
class AllocaInst;
template <typename T> class SmallVectorImpl;
diff --git a/llvm/include/llvm/Transforms/Utils/Local.h b/llvm/include/llvm/Transforms/Utils/Local.h
index e6687bb2489..2cdd31fb14d 100644
--- a/llvm/include/llvm/Transforms/Utils/Local.h
+++ b/llvm/include/llvm/Transforms/Utils/Local.h
@@ -27,7 +27,6 @@ class PHINode;
class AllocaInst;
class ConstantExpr;
class TargetData;
-class LLVMContext;
struct DbgInfoIntrinsic;
template<typename T> class SmallVectorImpl;
OpenPOWER on IntegriCloud