[dsymutil] Move CommonSymbols.clear() in resetParserState.

This seems like a more natural place to clear the vector, especially
since this method is clearing other data structures as well.

llvm-svn: 374378
This commit is contained in:
Jonas Devlieghere 2019-10-10 16:37:38 +00:00
parent 61e346ad96
commit fb5363a01f

View File

@ -123,6 +123,7 @@ private:
/// file. This is to be called after an object file is finished
/// processing.
void MachODebugMapParser::resetParserState() {
CommonSymbols.clear();
CurrentObjectAddresses.clear();
CurrentDebugMapObject = nullptr;
}
@ -144,7 +145,6 @@ void MachODebugMapParser::addCommonSymbols() {
continue;
}
}
CommonSymbols.clear();
}
/// Create a new DebugMapObject. This function resets the state of the