[llvm] 0b8fbd4 - make sanitizer happy for 36f351098cd50809658493d9b2e22a795874bab0.

Alexey Lapshin via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 11:54:59 PDT 2023


Author: Alexey Lapshin
Date: 2023-06-04T20:49:14+02:00
New Revision: 0b8fbd49b5eebf56650d6b21f29d17fb3b886e22

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

LOG: make sanitizer happy for 36f351098cd50809658493d9b2e22a795874bab0.

Added: 
    

Modified: 
    llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.h b/llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.h
index 6182dffed6544..1617a848512d5 100644
--- a/llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.h
+++ b/llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.h
@@ -24,22 +24,21 @@ class DWARFFile;
 /// instance of the object file or its brand new cloned and generated DIE tree.
 class CompileUnit : public DwarfUnit {
 public:
-  CompileUnit(LinkContext &Context, unsigned ID, StringRef ClangModuleName,
+  CompileUnit(LinkContext &, unsigned ID, StringRef ClangModuleName,
               DWARFFile &File,
-              DWARFLinker::SwiftInterfacesMapTy *SwiftInterfaces,
+              DWARFLinker::SwiftInterfacesMapTy *,
               UnitMessageHandlerTy WarningHandler)
-      : DwarfUnit(ID, ClangModuleName, WarningHandler), Context(Context),
-        ContaingFile(File), ParseableSwiftInterfaces(SwiftInterfaces) {
+      : DwarfUnit(ID, ClangModuleName, WarningHandler), ContaingFile(File) {
     FormParams.Version = 4;
     FormParams.Format = dwarf::DWARF32;
     FormParams.AddrSize = 4;
     UnitName = ContaingFile.FileName;
   }
 
-  CompileUnit(LinkContext &Context, DWARFUnit &OrigUnit, unsigned ID,
+  CompileUnit(LinkContext &, DWARFUnit &OrigUnit, unsigned ID,
               StringRef ClangModuleName, DWARFFile &File,
               UnitMessageHandlerTy WarningHandler)
-      : DwarfUnit(ID, ClangModuleName, WarningHandler), Context(Context),
+      : DwarfUnit(ID, ClangModuleName, WarningHandler),
         ContaingFile(File), OrigUnit(&OrigUnit) {
     DWARFDie CUDie = OrigUnit.getUnitDIE();
     if (!CUDie)
@@ -144,17 +143,11 @@ class CompileUnit : public DwarfUnit {
   /// @}
 
 private:
-  /// Context containing this compilation unit.
-  LinkContext &Context;
-
   /// DWARFFile containing this compile unit.
   DWARFFile &ContaingFile;
 
   /// Pointer to the paired compile unit from the input DWARF.
   DWARFUnit *OrigUnit = nullptr;
-
-  /// Map for swift interfaces.
-  DWARFLinker::SwiftInterfacesMapTy *ParseableSwiftInterfaces = nullptr;
 };
 
 } // end of namespace dwarflinker_parallel


        


More information about the llvm-commits mailing list