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