Return number of method calls that were replaced
This commit is contained in:
parent
28b73d36ed
commit
bd7a6763a6
|
@ -168,7 +168,7 @@ namespace de4dot {
|
||||||
// Returns null if method is not a method we should inline
|
// Returns null if method is not a method we should inline
|
||||||
protected abstract CallResult createCallResult(MethodReference method, Block block, int callInstrIndex);
|
protected abstract CallResult createCallResult(MethodReference method, Block block, int callInstrIndex);
|
||||||
|
|
||||||
public void decrypt(Blocks theBlocks) {
|
public int decrypt(Blocks theBlocks) {
|
||||||
try {
|
try {
|
||||||
blocks = theBlocks;
|
blocks = theBlocks;
|
||||||
callResults = new List<CallResult>();
|
callResults = new List<CallResult>();
|
||||||
|
@ -177,6 +177,7 @@ namespace de4dot {
|
||||||
findAllCallResults();
|
findAllCallResults();
|
||||||
inlineAllCalls();
|
inlineAllCalls();
|
||||||
inlineReturnValues();
|
inlineReturnValues();
|
||||||
|
return callResults.Count;
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
blocks = null;
|
blocks = null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user