summaryrefslogtreecommitdiff
path: root/sources/scalac/atree
diff options
context:
space:
mode:
authorNAME <USER@epfl.ch>2004-03-09 13:46:42 +0000
committerNAME <USER@epfl.ch>2004-03-09 13:46:42 +0000
commitb918f65c2e33075714351124b23d6e032b686af5 (patch)
tree184dbd731f14dda5df7f4e1e8ac7a3aa0660faff /sources/scalac/atree
parentd0f5e90b5b99095e5fb5325f0276dc9e5c512145 (diff)
downloadscala-b918f65c2e33075714351124b23d6e032b686af5.tar.gz
scala-b918f65c2e33075714351124b23d6e032b686af5.tar.bz2
scala-b918f65c2e33075714351124b23d6e032b686af5.zip
Some modifications on the intermediate code
Diffstat (limited to 'sources/scalac/atree')
-rw-r--r--sources/scalac/atree/AShiftOp.java6
-rw-r--r--sources/scalac/atree/ATreeFactory.java2
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. */