[lld] dd8cfde - [LLD][COFF] Delete unused field `DebugSHandler::source`

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 13:23:06 PDT 2023


Author: Alexandre Ganea
Date: 2023-10-02T16:22:54-04:00
New Revision: dd8cfdeef98e23965710d52cd68fc5046a573305

URL: https://github.com/llvm/llvm-project/commit/dd8cfdeef98e23965710d52cd68fc5046a573305
DIFF: https://github.com/llvm/llvm-project/commit/dd8cfdeef98e23965710d52cd68fc5046a573305.diff

LOG: [LLD][COFF] Delete unused field `DebugSHandler::source`

Added: 
    

Modified: 
    lld/COFF/PDB.cpp

Removed: 
    


################################################################################
diff  --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp
index 28df2e7da315d09..167ff54f06c4fe5 100644
--- a/lld/COFF/PDB.cpp
+++ b/lld/COFF/PDB.cpp
@@ -187,9 +187,6 @@ class DebugSHandler {
   /// The object file whose .debug$S sections we're processing.
   ObjFile &file;
 
-  /// The result of merging type indices.
-  TpiSource *source;
-
   /// The DEBUG_S_STRINGTABLE subsection.  These strings are referred to by
   /// index from other records in the .debug$S section.  All of these strings
   /// need to be added to the global PDB string table, and all references to
@@ -231,8 +228,8 @@ class DebugSHandler {
                               const DebugSubsectionRecord &ss);
 
 public:
-  DebugSHandler(PDBLinker &linker, ObjFile &file, TpiSource *source)
-      : linker(linker), file(file), source(source) {}
+  DebugSHandler(PDBLinker &linker, ObjFile &file)
+      : linker(linker), file(file) {}
 
   void handleDebugS(SectionChunk *debugChunk);
 
@@ -1033,7 +1030,7 @@ void PDBLinker::addDebugSymbols(TpiSource *source) {
   ScopedTimer t(ctx.symbolMergingTimer);
   ExitOnError exitOnErr;
   pdb::DbiStreamBuilder &dbiBuilder = builder.getDbiBuilder();
-  DebugSHandler dsh(*this, *source->file, source);
+  DebugSHandler dsh(*this, *source->file);
   // Now do all live .debug$S and .debug$F sections.
   for (SectionChunk *debugChunk : source->file->getDebugChunks()) {
     if (!debugChunk->live || debugChunk->getSize() == 0)


        


More information about the llvm-commits mailing list