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 | da5cfa369f3bf36a6626aad51c30a15754fa27ce (patch) | |
tree | 1ec78035b5442e23c93ff080103078e4ea2e06bd /tools/analyze | |
parent | f3a5981663fe5298cec1e01adb42db17eb825902 (diff) | |
download | llvm-da5cfa369f3bf36a6626aad51c30a15754fa27ce.tar.gz llvm-da5cfa369f3bf36a6626aad51c30a15754fa27ce.tar.bz2 llvm-da5cfa369f3bf36a6626aad51c30a15754fa27ce.tar.xz |
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
Diffstat (limited to 'tools/analyze')
-rw-r--r-- | tools/analyze/analyze.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 6d35f3e085..baad23787b 100644 --- a/tools/analyze/analyze.cpp +++ b/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 |