From e850a7920ea46d6f301b25dfc7ee6170a871c155 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 21 Jul 2001 19:08:44 +0000 Subject: [PATCH] Support changed expression api llvm-svn: 242 --- llvm/tools/analyze/analyze.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index e305052ffec6..cf93ea9d8ed4 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -38,20 +38,20 @@ static void PrintClassifiedExprs(Method *M) { cout << *I; if ((*I)->getType() == Type::VoidTy) continue; - ExprAnalysisResult R = ClassifyExpression(*I); + analysis::ExprType R = analysis::ClassifyExpression(*I); if (R.Var == *I) continue; // Doesn't tell us anything cout << "\t\tExpr ="; - switch (R.ExprType) { - case ExprAnalysisResult::ScaledLinear: + switch (R.ExprTy) { + case analysis::ExprType::ScaledLinear: WriteAsOperand(cout, (Value*)R.Scale) << " *"; // fall through - case ExprAnalysisResult::Linear: + case analysis::ExprType::Linear: WriteAsOperand(cout, R.Var); if (R.Offset == 0) break; else cout << " +"; // fall through - case ExprAnalysisResult::Constant: + case analysis::ExprType::Constant: if (R.Offset) WriteAsOperand(cout, (Value*)R.Offset); else cout << " 0"; break; }