Parenthesize output for expranalyze so that pointer stuff being multiplied isn't confusing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-07-25 22:48:37 +00:00
parent f3a5981663
commit da5cfa369f

View File

@ -44,10 +44,10 @@ static void PrintClassifiedExprs(Method *M) {
cout << "\t\tExpr =";
switch (R.ExprTy) {
case analysis::ExprType::ScaledLinear:
WriteAsOperand(cout, (Value*)R.Scale) << " *";
WriteAsOperand(cout << "(", (Value*)R.Scale) << " ) *";
// fall through
case analysis::ExprType::Linear:
WriteAsOperand(cout, R.Var);
WriteAsOperand(cout << "(", R.Var) << " )";
if (R.Offset == 0) break;
else cout << " +";
// fall through