Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/block.cpp @ 9060:cc32ccaaf47f
8003310: Enable -Wunused-function when compiling with gcc
Summary: Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
author | mikael |
---|---|
date | Thu, 04 Apr 2013 10:01:26 -0700 |
parents | b9a9ed0f8eeb |
children | d1034bd8cefc |
comparison
equal
deleted
inserted
replaced
9059:17bf4d428955 | 9060:cc32ccaaf47f |
---|---|
1026 assert( src < dst, "always union smaller" ); | 1026 assert( src < dst, "always union smaller" ); |
1027 map(dst,src); | 1027 map(dst,src); |
1028 } | 1028 } |
1029 | 1029 |
1030 #ifndef PRODUCT | 1030 #ifndef PRODUCT |
1031 static void edge_dump(GrowableArray<CFGEdge *> *edges) { | |
1032 tty->print_cr("---- Edges ----"); | |
1033 for (int i = 0; i < edges->length(); i++) { | |
1034 CFGEdge *e = edges->at(i); | |
1035 if (e != NULL) { | |
1036 edges->at(i)->dump(); | |
1037 } | |
1038 } | |
1039 } | |
1040 | |
1041 static void trace_dump(Trace *traces[], int count) { | |
1042 tty->print_cr("---- Traces ----"); | |
1043 for (int i = 0; i < count; i++) { | |
1044 Trace *tr = traces[i]; | |
1045 if (tr != NULL) { | |
1046 tr->dump(); | |
1047 } | |
1048 } | |
1049 } | |
1050 | |
1051 void Trace::dump( ) const { | 1031 void Trace::dump( ) const { |
1052 tty->print_cr("Trace (freq %f)", first_block()->_freq); | 1032 tty->print_cr("Trace (freq %f)", first_block()->_freq); |
1053 for (Block *b = first_block(); b != NULL; b = next(b)) { | 1033 for (Block *b = first_block(); b != NULL; b = next(b)) { |
1054 tty->print(" B%d", b->_pre_order); | 1034 tty->print(" B%d", b->_pre_order); |
1055 if (b->head()->is_Loop()) { | 1035 if (b->head()->is_Loop()) { |