From 2c969446b0737f7d3c4661f93d965faf820df676 Mon Sep 17 00:00:00 2001 From: de4dot Date: Sat, 18 Feb 2012 07:56:53 +0100 Subject: [PATCH] Add InlinedAllCalls property --- de4dot.code/MethodReturnValueInliner.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/de4dot.code/MethodReturnValueInliner.cs b/de4dot.code/MethodReturnValueInliner.cs index 5187800b..52695e94 100644 --- a/de4dot.code/MethodReturnValueInliner.cs +++ b/de4dot.code/MethodReturnValueInliner.cs @@ -145,6 +145,7 @@ namespace de4dot.code { List 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;