summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/TransformInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-26 16:38:28 +0000
committerChris Lattner <sabre@nondot.org>2005-07-26 16:38:28 +0000
commit31d0ac2414631808b0e75eac74b03c8310b4245f (patch)
tree4bee31bdeda2823b3c26101fba791f87e516790a /llvm/lib/Transforms/TransformInternals.h
parent54d27a49daadf8cf13cebc5866ee6e2db30f8a56 (diff)
downloadbcm5719-llvm-31d0ac2414631808b0e75eac74b03c8310b4245f.tar.gz
bcm5719-llvm-31d0ac2414631808b0e75eac74b03c8310b4245f.zip
ConvertibleToGEP always returns 0, remove some old crufty code which
is actually dead because of this! llvm-svn: 22515
Diffstat (limited to 'llvm/lib/Transforms/TransformInternals.h')
-rw-r--r--llvm/lib/Transforms/TransformInternals.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Transforms/TransformInternals.h b/llvm/lib/Transforms/TransformInternals.h
index ba3bd5a7a70..51e32c81e67 100644
--- a/llvm/lib/Transforms/TransformInternals.h
+++ b/llvm/lib/Transforms/TransformInternals.h
@@ -37,20 +37,6 @@ static inline const CompositeType *getPointedToComposite(const Type *Ty) {
return PT ? dyn_cast<CompositeType>(PT->getElementType()) : 0;
}
-// ConvertibleToGEP - This function returns true if the specified value V is
-// a valid index into a pointer of type Ty. If it is valid, Idx is filled in
-// with the values that would be appropriate to make this a getelementptr
-// instruction. The type returned is the root type that the GEP would point
-// to if it were synthesized with this operands.
-//
-// If BI is nonnull, cast instructions are inserted as appropriate for the
-// arguments of the getelementptr.
-//
-const Type *ConvertibleToGEP(const Type *Ty, Value *V,
- std::vector<Value*> &Indices,
- const TargetData &TD,
- BasicBlock::iterator *BI = 0);
-
//===----------------------------------------------------------------------===//
// ValueHandle Class - Smart pointer that occupies a slot on the users USE list
OpenPOWER on IntegriCloud