Changeset 1255 for proto/pebble


Ignore:
Timestamp:
Aug 1, 2011, 2:59:08 PM (8 years ago)
Author:
shermer
Message:

added a reversed block list function to Fragment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/pebble/trunk/src/incode/Fragment.java

    r1253 r1255  
    33import java.io.PrintStream;
    44import java.util.ArrayList;
     5import java.util.Collections;
    56import java.util.HashMap;
    67import java.util.Iterator;
     
    134135                return result;
    135136        }
    136        
     137        public List<BasicBlock> blocksInReverse() {
     138                List<BasicBlock> blocks = blocks();
     139                Collections.reverse(blocks);
     140                return blocks;
     141        }
    137142        ///////////////////////////////////////////////////////////////////////////
    138143        // chainFragmentsTogether
Note: See TracChangeset for help on using the changeset viewer.