Actually call finishFuction() when function is finished
authorChristoph Egger <Christoph.Egger@fau.de>
Tue, 10 Mar 2015 11:33:37 +0000 (12:33 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Tue, 10 Mar 2015 11:33:37 +0000 (12:33 +0100)
src/disassembler/llvm/LLVMDisassembler.cxx

index 3d969ef211975fde131ec83514beb561f220d5af..875a474b239c1d69607b55f60c4b1d564fa5d048 100644 (file)
@@ -199,7 +199,6 @@ Function* LLVMDisassembler<ELFT>::disassembleFunctionAt(uint64_t address, const
                        function->setName(name);
                }
                disassembleFunction(function);
-               manager->finishFunction(function);
        }
 
        return function;
@@ -298,7 +297,7 @@ void LLVMDisassembler<ELFT>::disassembleFunction(Function* function) {
        }
        splitBlocks(function);
        LOG4CXX_DEBUG(logger, "Finished function " << function->getName());
-       manager->signal_new_function(function);
+       manager->finishFunction(function);
 }
 
 template <typename ELFT>