[SymbolFile] Rename ParseFunctionBlocks to ParseBlocksRecursive.

This method took a SymbolContext but only actually cared about the
case where the m_function member was set.  Furthermore, it was
intended to be implemented to parse blocks recursively despite not
documenting this in its name.  So we change the name to indicate
that it should be recursive, while also limiting the function
parameter to be a Function&.  This lets the caller know what is
required to use it, as well as letting new implementers know what
kind of inputs they need to be prepared to handle.

llvm-svn: 351131
This commit is contained in:
Zachary Turner
2019-01-14 22:40:41 +00:00
parent 786558882c
commit ffc1b8fd76
16 changed files with 63 additions and 63 deletions

View File

@@ -373,9 +373,10 @@ void Module::ParseAllDebugSymbols() {
symbols->ParseFunctions(*sc.comp_unit);
sc.comp_unit->ForeachFunction([&sc, &symbols](const FunctionSP &f) {
sc.function = f.get();
symbols->ParseFunctionBlocks(sc);
symbols->ParseBlocksRecursive(*f);
// Parse the variables for this function and all its blocks
sc.function = f.get();
symbols->ParseVariablesForContext(sc);
return false;
});