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:
parent
0acf605cd9
commit
1a94273fc3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user