[llvm-gsymutil] Fix tracking of currently open file
authorVictor Michel <vic.michel.web@gmail.com>
Tue, 4 Oct 2022 00:48:20 +0000 (17:48 -0700)
committerShoaib Meenai <smeenai@fb.com>
Tue, 4 Oct 2022 00:49:12 +0000 (17:49 -0700)
commit9cf60d8479e2eef3a8881c166b82f8db639fcd9e
tree17ae93e9254e9a938dd3c6a9fa9510ddfb292f72
parent0a9756fc15c57dc94146e65d251d7a3d941ae78a
[llvm-gsymutil] Fix tracking of currently open file

Prior to this change, `CurrentGSYMPath` was never updated. As a consequence, the GSYM file was reopened for every frame, even if all frames were relative to the same GSYM file.

This change brings a 13x speedup on a test I'm doing (symbolizing ~25K frames from libxul)

(This is my first-ever LLVM change - sorry if I missed something in the process!)

Reviewed By: simon.giesecke, clayborg

Differential Revision: https://reviews.llvm.org/D132912
llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp