[llvm-branch-commits] [llvm-branch] r109238 - /llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp

Gabor Greif ggreif at gmail.com
Fri Jul 23 10:14:37 PDT 2010


Author: ggreif
Date: Fri Jul 23 12:14:37 2010
New Revision: 109238

URL: http://llvm.org/viewvc/llvm-project?rev=109238&view=rev
Log:
use goto ;-)

Modified:
    llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp

Modified: llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp?rev=109238&r1=109237&r2=109238&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp Fri Jul 23 12:14:37 2010
@@ -58,11 +58,11 @@
     switch (Tag) {
       case stop64Tag:
         switch (Current->Prev.getInt()) {
-				case 0: ++Current; Offset = 4; break;
-        case xStop64Tag: ++Current; Offset = 1; break;
-        case yStop64Tag: return Current + 3;
-				}
-        // fall thru...
+          case 0: ++Current; Offset = 4; goto digits;
+          case xStop64Tag: ++Current; Offset = 1; goto digits;
+          case yStop64Tag: return Current + 3;
+          default: goto digits;
+        }
       case xStop64Tag:
         if (Current->Prev.getInt() == fullStop64Tag)
           return Current + 1;
@@ -70,6 +70,7 @@
         if (Current->Prev.getInt() == xStop64Tag)
           return Current + 2;
         while (true) {
+          digits:
           unsigned Tag = Current->Prev.getInt();
           switch (Tag) {
             case zero64Tag:





More information about the llvm-branch-commits mailing list