aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Transforms/TransformInternals.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h
index 3131b8d367..200a4d7b98 100644
--- a/lib/Transforms/TransformInternals.h
+++ b/lib/Transforms/TransformInternals.h
@@ -31,13 +31,6 @@ static int getConstantValue(const ConstantInt *CPI) {
}
-// isFirstClassType - Return true if a value of the specified type can be held
-// in a register.
-//
-static inline bool isFirstClassType(const Type *Ty) {
- return Ty->isPrimitiveType() || Ty->isPointerType();
-}
-
// getPointedToComposite - If the argument is a pointer type, and the pointed to
// value is a composite type, return the composite type, else return null.
//
@@ -60,6 +53,8 @@ void ReplaceInstWithValue(BasicBlock::InstListType &BIL,
void ReplaceInstWithInst(BasicBlock::InstListType &BIL,
BasicBlock::iterator &BI, Instruction *I);
+void ReplaceInstWithInst(Instruction *From, Instruction *To);
+
// ConvertableToGEP - 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