diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-21 19:08:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-21 19:08:44 +0000 |
commit | 85202d46223f3ec6a47dee3aa07a1f5d928eff29 (patch) | |
tree | 3b9ce489a619bab383a40c603bacd0d3493b2325 | |
parent | 19f31f28d8b4192ce241852b477147e2489c666b (diff) |
Support changed expression api
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/analyze/analyze.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index e305052ffe..cf93ea9d8e 100644 --- a/tools/analyze/analyze.cpp +++ b/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; } |