Skip to content

Commit dd8cfde

Browse files
committed
[LLD][COFF] Delete unused field DebugSHandler::source
1 parent 52d9f76 commit dd8cfde

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lld/COFF/PDB.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ class DebugSHandler {
187187
/// The object file whose .debug$S sections we're processing.
188188
ObjFile &file;
189189

190-
/// The result of merging type indices.
191-
TpiSource *source;
192-
193190
/// The DEBUG_S_STRINGTABLE subsection. These strings are referred to by
194191
/// index from other records in the .debug$S section. All of these strings
195192
/// need to be added to the global PDB string table, and all references to
@@ -231,8 +228,8 @@ class DebugSHandler {
231228
const DebugSubsectionRecord &ss);
232229

233230
public:
234-
DebugSHandler(PDBLinker &linker, ObjFile &file, TpiSource *source)
235-
: linker(linker), file(file), source(source) {}
231+
DebugSHandler(PDBLinker &linker, ObjFile &file)
232+
: linker(linker), file(file) {}
236233

237234
void handleDebugS(SectionChunk *debugChunk);
238235

@@ -1033,7 +1030,7 @@ void PDBLinker::addDebugSymbols(TpiSource *source) {
10331030
ScopedTimer t(ctx.symbolMergingTimer);
10341031
ExitOnError exitOnErr;
10351032
pdb::DbiStreamBuilder &dbiBuilder = builder.getDbiBuilder();
1036-
DebugSHandler dsh(*this, *source->file, source);
1033+
DebugSHandler dsh(*this, *source->file);
10371034
// Now do all live .debug$S and .debug$F sections.
10381035
for (SectionChunk *debugChunk : source->file->getDebugChunks()) {
10391036
if (!debugChunk->live || debugChunk->getSize() == 0)

0 commit comments

Comments
 (0)