1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

llvm-svn: 299
This commit is contained in:
Chris Lattner 2001-07-25 22:48:37 +00:00
parent 0acf605cd9
commit 1a94273fc3

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