diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-25 22:48:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-25 22:48:37 +0000 |
| commit | 2d88a8ee379d0cc3e462db1c824b45db5aa9a208 (patch) | |
| tree | 42a413ffa87825d4b093dbd2fb84add5aacc3751 /llvm/tools/analyze/analyze.cpp | |
| parent | 1ca60f71f01e7702c2bf7ccb0fb93998b997703e (diff) | |
| download | bcm5719-llvm-2d88a8ee379d0cc3e462db1c824b45db5aa9a208.tar.gz bcm5719-llvm-2d88a8ee379d0cc3e462db1c824b45db5aa9a208.zip | |
Parenthesize output for expranalyze so that pointer stuff being multiplied isn't confusing
llvm-svn: 299
Diffstat (limited to 'llvm/tools/analyze/analyze.cpp')
| -rw-r--r-- | llvm/tools/analyze/analyze.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index 6d35f3e085e..baad23787ba 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -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 |

