Mercurial > hg > truffle
comparison src/share/vm/adlc/archDesc.cpp @ 14229:d16be2b85802
8022263: use same Clang warnings on BSD as on Linux
Reviewed-by: kvn, iveresov
author | twisti |
---|---|
date | Tue, 07 Jan 2014 14:26:12 -0800 |
parents | de6a9e811145 |
children | abec000618bf |
comparison
equal
deleted
inserted
replaced
14228:e045e1876610 | 14229:d16be2b85802 |
---|---|
39 for (; str < end; ++str, ++upper) { | 39 for (; str < end; ++str, ++upper) { |
40 *upper = toUpper(*str); | 40 *upper = toUpper(*str); |
41 } | 41 } |
42 *upper = '\0'; | 42 *upper = '\0'; |
43 return result; | 43 return result; |
44 } | |
45 | |
46 // Utilities to characterize effect statements | |
47 static bool is_def(int usedef) { | |
48 switch(usedef) { | |
49 case Component::DEF: | |
50 case Component::USE_DEF: return true; break; | |
51 } | |
52 return false; | |
53 } | |
54 | |
55 static bool is_use(int usedef) { | |
56 switch(usedef) { | |
57 case Component::USE: | |
58 case Component::USE_DEF: | |
59 case Component::USE_KILL: return true; break; | |
60 } | |
61 return false; | |
62 } | |
63 | |
64 static bool is_kill(int usedef) { | |
65 switch(usedef) { | |
66 case Component::KILL: | |
67 case Component::USE_KILL: return true; break; | |
68 } | |
69 return false; | |
70 } | 44 } |
71 | 45 |
72 //---------------------------ChainList Methods------------------------------- | 46 //---------------------------ChainList Methods------------------------------- |
73 ChainList::ChainList() { | 47 ChainList::ChainList() { |
74 } | 48 } |