mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
- Eliminate the last traces of the 'analysis' namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -71,20 +71,20 @@ namespace {
|
||||
OS << *I;
|
||||
|
||||
if ((*I)->getType() == Type::VoidTy) continue;
|
||||
analysis::ExprType R = analysis::ClassifyExpression(*I);
|
||||
ExprType R = ClassifyExpression(*I);
|
||||
if (R.Var == *I) continue; // Doesn't tell us anything
|
||||
|
||||
OS << "\t\tExpr =";
|
||||
switch (R.ExprTy) {
|
||||
case analysis::ExprType::ScaledLinear:
|
||||
case ExprType::ScaledLinear:
|
||||
WriteAsOperand(OS << "(", (Value*)R.Scale) << " ) *";
|
||||
// fall through
|
||||
case analysis::ExprType::Linear:
|
||||
case ExprType::Linear:
|
||||
WriteAsOperand(OS << "(", R.Var) << " )";
|
||||
if (R.Offset == 0) break;
|
||||
else OS << " +";
|
||||
// fall through
|
||||
case analysis::ExprType::Constant:
|
||||
case ExprType::Constant:
|
||||
if (R.Offset) WriteAsOperand(OS, (Value*)R.Offset);
|
||||
else OS << " 0";
|
||||
break;
|
||||
|
Reference in New Issue
Block a user