* @return The corresponding EffectSet memory, or the set of all effects if no such EffectSet is found.
*/
public static Effects getEffectsForMethod(MethodSymbol sym) {
String symbolHash = MethodInfo.getHashForMethod(sym);
Effects effects = methodEffectMap.get(symbolHash);
if (effects != null) {
return effects;
}
log.debug("Unable to source side effects for method: {}. This will harm optimisation - such calls are taken to have all possible side effects!", sym);
return new Effects(EffectSet.ALL_EFFECTS, EffectSet.ALL_EFFECTS);
}