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

Amy Huang via All-commits all-commits at lists.llvm.org
Sun Jan 8 15:57:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7370ff624d217b0f8f7512ca5b651a9b8095a411
      https://github.com/llvm/llvm-project/commit/7370ff624d217b0f8f7512ca5b651a9b8095a411
  Author: Amy Huang <akhuang at google.com>
  Date:   2023-01-08 (Sun, 08 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