The gn script for lld's COFF lib adds an unnecessary dependency on llvm/lib/DebugInfo/Symbolize. There is no such dependency in lld/COFF/CMakeLists.txt. This can be safely removed.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Replace include of Symbolize.h with DIContext.h in lld/COFF/SymbolTable.cpp. LLD just needs llvm/DebugInfo/DIContext.h which it currently gets through
Symbolize.h -> SymbolizableModule.h -> DIContext.h.
This needlessly pulls in extra headers (and perhaps led to the gn dep line fixed in this diff, although I'm not familiar with how the gn build is maintained.).
Comment Actions
Thanks for the review @phosek . Just to avoid any possible confusion I've also corrected SymbolTable.cpp to include "DIContext.h" instead of "Symbolize.h". Does this still LGTY?