[all-commits] [llvm/llvm-project] 5a58b1: [LLD] Remove global state in lld/COFF

Amy Huang via All-commits all-commits at lists.llvm.org
Mon Jan 9 20:39:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a58b19f9c93f3ac51bcde318508131ae78aa10c
      https://github.com/llvm/llvm-project/commit/5a58b19f9c93f3ac51bcde318508131ae78aa10c
  Author: Amy Huang <akhuang at google.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M lld/COFF/COFFLinkerContext.cpp
    M lld/COFF/COFFLinkerContext.h
    M lld/COFF/CallGraphSort.cpp
    M lld/COFF/Chunks.cpp
    M lld/COFF/Chunks.h
    M lld/COFF/Config.h
    M lld/COFF/DLL.cpp
    M lld/COFF/DLL.h
    M lld/COFF/DebugTypes.cpp
    M lld/COFF/Driver.cpp
    M lld/COFF/Driver.h
    M lld/COFF/DriverUtils.cpp
    M lld/COFF/ICF.cpp
    M lld/COFF/ICF.h
    M lld/COFF/InputFiles.cpp
    M lld/COFF/InputFiles.h
    M lld/COFF/LLDMapFile.cpp
    M lld/COFF/LTO.cpp
    M lld/COFF/LTO.h
    M lld/COFF/MapFile.cpp
    M lld/COFF/MarkLive.cpp
    M lld/COFF/MinGW.cpp
    M lld/COFF/MinGW.h
    M lld/COFF/PDB.cpp
    M lld/COFF/SymbolTable.cpp
    M lld/COFF/SymbolTable.h
    M lld/COFF/Symbols.cpp
    M lld/COFF/Symbols.h
    M lld/COFF/TypeMerger.h
    M lld/COFF/Writer.cpp
    M lld/COFF/Writer.h

  Log Message:
  -----------
  [LLD] Remove global state in lld/COFF

Remove globals from the lldCOFF library, by moving globals into a context class.
This patch mostly moves the config object into COFFLinkerContext.

See https://lists.llvm.org/pipermail/llvm-dev/2021-June/151184.html for
context about removing globals from LLD.

Reviewed By: aganea

Differential Revision: https://reviews.llvm.org/D110450




More information about the All-commits mailing list