diff options
| author | 2012-03-07 20:18:49 -0800 | |
|---|---|---|
| committer | 2012-03-07 20:18:49 -0800 | |
| commit | 680b1bdd7e5d112ba4b95d6c81a43b65119b3b9c (patch) | |
| tree | 21514b638db9b28cf26b4b452c3e5f9449568812 /src/compiler/codegen/GenCommon.cc | |
| parent | d8af8bd46c13347ca15558999db4da85dbc31818 (diff) | |
Unify branch flags, pretty printer for OpKind.
LIR operand 0 is always an offset for a branch. This is clear in
conditional branches that are binary and have the 2nd operand as the
condition codes of the branch. This changes unconditional branches to be
unary and therefore more intention revealing that the 1st operand will
be used by the assembler to hold an offset.
A << operator for OpKind allows easy pretty printing.
Change-Id: I933b8e0bf43f5be3eff13f93c3fc1539ae526840
Diffstat (limited to 'src/compiler/codegen/GenCommon.cc')
| -rw-r--r-- | src/compiler/codegen/GenCommon.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/codegen/GenCommon.cc b/src/compiler/codegen/GenCommon.cc index 3d46240df6..c43d8ff2a4 100644 --- a/src/compiler/codegen/GenCommon.cc +++ b/src/compiler/codegen/GenCommon.cc @@ -47,7 +47,7 @@ void genBarrier(CompilationUnit* cUnit) /* Generate unconditional branch instructions */ LIR* opUnconditionalBranch(CompilationUnit* cUnit, LIR* target) { - LIR* branch = opNone(cUnit, kOpUncondBr); + LIR* branch = opBranchUnconditional(cUnit, kOpUncondBr); branch->target = (LIR*) target; return branch; } |