summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-10 16:37:38 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-10 16:37:38 +0000
commit644abcf09d6be542983ff127041b6ae9235ada46 (patch)
tree41adf17da0de39fa79b0d2c0b833625f4afa8520 /llvm/tools
parent8628bb0491cfbef98c866110d09a5c81caed6095 (diff)
downloadbcm5719-llvm-644abcf09d6be542983ff127041b6ae9235ada46.tar.gz
bcm5719-llvm-644abcf09d6be542983ff127041b6ae9235ada46.zip
[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
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/dsymutil/MachODebugMapParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/dsymutil/MachODebugMapParser.cpp b/llvm/tools/dsymutil/MachODebugMapParser.cpp
index 487fbfff50c..3292e948572 100644
--- a/llvm/tools/dsymutil/MachODebugMapParser.cpp
+++ b/llvm/tools/dsymutil/MachODebugMapParser.cpp
@@ -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
OpenPOWER on IntegriCloud