[COFF] Move type merging to TpiSource::mergeDebugT virtual method
authorReid Kleckner <rnk@google.com>
Sat, 9 May 2020 13:58:15 +0000 (06:58 -0700)
committerReid Kleckner <rnk@google.com>
Thu, 14 May 2020 16:47:00 +0000 (09:47 -0700)
commit54a335a2f60b0f7bb85d01780bb6bbf653b1f399
treefc136f78c256cf4b8e9c3f30cc4541f4f267d810
parent235fb7dc24b1cf7034dfc76bb853ffb4ac5dec5d
[COFF] Move type merging to TpiSource::mergeDebugT virtual method

This paves the way to doing more things in parallel, and allows us to
order type sources in dependency order. PDBs and PCH objects have to be
loaded before object files which use them.

This is a rebase of the unapplied remaining changes in
https://reviews.llvm.org/D59226. I found it very challenging to rebase
this across the LLD variable name style change. I recall there was a
tool for that, but I didn't take the time to use it.

Reviewers: aganea, akhuang

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79672
lld/COFF/DebugTypes.cpp
lld/COFF/DebugTypes.h
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/COFF/InputFiles.cpp
lld/COFF/InputFiles.h
lld/COFF/PDB.cpp
lld/COFF/TypeMerger.h
lld/test/COFF/precomp-link.test