From 59b6b8e0b3e51dd899da25bd25b0793cc8229eea Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Jan 2002 23:17:48 +0000 Subject: Move stuff out of the Optimizations directories into the appropriate Transforms directories. Eliminate the opt namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1520 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/ExprTypeConvert.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Transforms/ExprTypeConvert.cpp') diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 7f33fe280b..d75a8ac68c 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -12,8 +12,8 @@ #include "llvm/iPHINode.h" #include "llvm/iMemory.h" #include "llvm/ConstantVals.h" -#include "llvm/Optimizations/ConstantHandling.h" -#include "llvm/Optimizations/DCE.h" +#include "llvm/Transforms/Scalar/ConstantHandling.h" +#include "llvm/Transforms/Scalar/DCE.h" #include "llvm/Analysis/Expressions.h" #include "Support/STLExtras.h" #include @@ -190,7 +190,7 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty, // it can convert the value... // if (Constant *CPV = dyn_cast(V)) - if (opt::ConstantFoldCastInstruction(CPV, Ty)) + if (ConstantFoldCastInstruction(CPV, Ty)) return true; // Don't worry about deallocating, it's a constant. return false; // Otherwise, we can't convert! @@ -369,7 +369,7 @@ Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC) { if (Constant *CPV = cast(V)) { // Constants are converted by constant folding the cast that is required. // We assume here that all casts are implemented for constant prop. - Value *Result = opt::ConstantFoldCastInstruction(CPV, Ty); + Value *Result = ConstantFoldCastInstruction(CPV, Ty); assert(Result && "ConstantFoldCastInstruction Failed!!!"); assert(Result->getType() == Ty && "Const prop of cast failed!"); -- cgit v1.2.3-70-g09d2