mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
rename ClassifyExpression -> ClassifyExpr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,7 +52,7 @@ static bool MallocConvertibleToType(MallocInst *MI, const Type *Ty,
|
||||
if (!Ty->isSized()) return false; // Can only alloc something with a size
|
||||
|
||||
// Analyze the number of bytes allocated...
|
||||
ExprType Expr = ClassifyExpression(MI->getArraySize());
|
||||
ExprType Expr = ClassifyExpr(MI->getArraySize());
|
||||
|
||||
// Get information about the base datatype being allocated, before & after
|
||||
int ReqTypeSize = TD.getTypeSize(Ty);
|
||||
@@ -89,7 +89,7 @@ static Instruction *ConvertMallocToType(MallocInst *MI, const Type *Ty,
|
||||
BasicBlock::iterator It = BB->end();
|
||||
|
||||
// Analyze the number of bytes allocated...
|
||||
ExprType Expr = ClassifyExpression(MI->getArraySize());
|
||||
ExprType Expr = ClassifyExpr(MI->getArraySize());
|
||||
|
||||
const PointerType *AllocTy = cast<PointerType>(Ty);
|
||||
const Type *ElType = AllocTy->getElementType();
|
||||
|
@@ -104,7 +104,7 @@ const Type *ConvertibleToGEP(const Type *Ty, Value *OffsetVal,
|
||||
// See if the cast is of an integer expression that is either a constant,
|
||||
// or a value scaled by some amount with a possible offset.
|
||||
//
|
||||
ExprType Expr = ClassifyExpression(OffsetVal);
|
||||
ExprType Expr = ClassifyExpr(OffsetVal);
|
||||
|
||||
// Get the offset and scale values if they exists...
|
||||
// A scale of zero with Expr.Var != 0 means a scale of 1.
|
||||
|
Reference in New Issue
Block a user