[all-commits] [llvm/llvm-project] bd7ea8: [PDB] Avoid calling discoverTypeIndices for a know...
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Sat May 2 15:51:24 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: bd7ea8641e7667b109534ae06b33be7bc9b59821
https://github.com/llvm/llvm-project/commit/bd7ea8641e7667b109534ae06b33be7bc9b59821
Author: Reid Kleckner <rnk at google.com>
Date: 2020-05-02 (Sat, 02 May 2020)
Changed paths:
M lld/COFF/PDB.cpp
Log Message:
-----------
[PDB] Avoid calling discoverTypeIndices for a known record kind
This particular overload allocates memory, and we do this for every
S_[GL]PROC32_ID record. Instead, hardcode the offset of the typeindex
that we are looking for in the LF_[MEM]FUNC_ID record. We already
assumed that looking up the item index already found a record of this
kind.
More information about the All-commits
mailing list