misc. housekeeping and some slicer bug fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1375 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
4dfe343b67
commit
da8c93ec1a
|
@ -42,7 +42,7 @@ public class AstIRFactory implements IRFactory {
|
|||
this.keptIRs = (keepIR) ? new HashMap<IMethod, IR>() : null;
|
||||
}
|
||||
|
||||
public ControlFlowGraph makeCFG(final IMethod method, final Context context,final WarningSet warnings) {
|
||||
public ControlFlowGraph makeCFG(final IMethod method, final Context context, final WarningSet warnings) {
|
||||
return ((AstMethod) method).getControlFlowGraph();
|
||||
}
|
||||
|
||||
|
@ -95,8 +95,7 @@ public class AstIRFactory implements IRFactory {
|
|||
}
|
||||
}
|
||||
|
||||
public IR makeIR(final IMethod method, final Context context, final SSAOptions options,
|
||||
final WarningSet warnings) {
|
||||
public IR makeIR(final IMethod method, final Context context, final SSAOptions options, final WarningSet warnings) {
|
||||
Assertions._assert(method instanceof AstMethod, method.toString());
|
||||
if (keepIR) {
|
||||
if (keptIRs.containsKey(method)) {
|
||||
|
@ -123,13 +122,13 @@ public class AstIRFactory implements IRFactory {
|
|||
|
||||
public IR makeIR(IMethod method, Context context, SSAOptions options, WarningSet warnings) {
|
||||
if (method instanceof AstMethod) {
|
||||
return astFactory.makeIR(method, context,options, warnings);
|
||||
return astFactory.makeIR(method, context, options, warnings);
|
||||
} else {
|
||||
return super.makeIR(method, context, options, warnings);
|
||||
}
|
||||
}
|
||||
|
||||
public ControlFlowGraph makeCFG(IMethod method, Context context,WarningSet warnings) {
|
||||
public ControlFlowGraph makeCFG(IMethod method, Context context, WarningSet warnings) {
|
||||
if (method instanceof AstMethod) {
|
||||
return astFactory.makeCFG(method, context, warnings);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue