diff options
author | NAME <USER@epfl.ch> | 2004-03-09 13:46:42 +0000 |
---|---|---|
committer | NAME <USER@epfl.ch> | 2004-03-09 13:46:42 +0000 |
commit | b918f65c2e33075714351124b23d6e032b686af5 (patch) | |
tree | 184dbd731f14dda5df7f4e1e8ac7a3aa0660faff /sources/scalac | |
parent | d0f5e90b5b99095e5fb5325f0276dc9e5c512145 (diff) | |
download | scala-b918f65c2e33075714351124b23d6e032b686af5.tar.gz scala-b918f65c2e33075714351124b23d6e032b686af5.tar.bz2 scala-b918f65c2e33075714351124b23d6e032b686af5.zip |
Some modifications on the intermediate code
Diffstat (limited to 'sources/scalac')
-rw-r--r-- | sources/scalac/atree/AShiftOp.java | 6 | ||||
-rw-r--r-- | sources/scalac/atree/ATreeFactory.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sources/scalac/atree/AShiftOp.java b/sources/scalac/atree/AShiftOp.java index fbed80fcde..791ce54328 100644 --- a/sources/scalac/atree/AShiftOp.java +++ b/sources/scalac/atree/AShiftOp.java @@ -16,8 +16,8 @@ public class AShiftOp { //######################################################################## // Public Cases - /** An arithmetic shift to the left */ - public case ASL; + /** A logical shift to the left */ + public case LSL; /** An arithmetic shift to the right */ public case ASR; @@ -31,7 +31,7 @@ public class AShiftOp { /** Returns a string representation of this operation. */ public String toString() { switch (this) { - case ASL: return "ASL"; + case LSL: return "LSL"; case ASR: return "ASR"; case LSR: return "LSR"; default: throw Debug.abort("unknown case", this); diff --git a/sources/scalac/atree/ATreeFactory.java b/sources/scalac/atree/ATreeFactory.java index e28b220340..0c09650a16 100644 --- a/sources/scalac/atree/ATreeFactory.java +++ b/sources/scalac/atree/ATreeFactory.java @@ -411,7 +411,7 @@ public class ATreeFactory { /** Builds a LSL primitive. */ public APrimitive LSL(ATypeKind kind) { - return APrimitive.Shift(AShiftOp.ASL, kind); + return APrimitive.Shift(AShiftOp.LSL, kind); } /** Builds a LSR primitive. */ |