Add InlinedAllCalls property

This commit is contained in:
de4dot 2012-02-18 07:56:53 +01:00
parent 8b059bcea7
commit 2c969446b0

View File

@ -145,6 +145,7 @@ namespace de4dot.code {
List<Block> allBlocks;
Blocks blocks;
VariableValues variableValues;
int errors = 0;
protected class CallResult {
public Block block;
@ -163,6 +164,10 @@ namespace de4dot.code {
}
}
public bool InlinedAllCalls {
get { return errors == 0; }
}
public abstract bool HasHandlers { get; }
protected MethodDefinition Method {
@ -274,6 +279,7 @@ namespace de4dot.code {
Log.w("Could not find all arguments to method {0} ({1:X8})",
Utils.removeNewlines(method),
method.MetadataToken.ToInt32());
errors++;
return false;
}
@ -323,6 +329,7 @@ namespace de4dot.code {
Utils.removeNewlines(method),
method.MetadataToken.ToInt32(),
instr);
errors++;
return false;
}
break;