[PATCH] D70766: Consolidate global variables to a single place

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 23:19:58 PST 2019


ruiu created this revision.
ruiu added reviewers: blackhole12, MaskRay, grimar, peter.smith.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

The aim of this patch is the same as https://reviews.llvm.org/D70421
but I took a different approach. I just moved all global variables
to Driver.cpp so that we don't forget to initialize them on startup.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70766

Files:
  lld/COFF/Driver.cpp
  lld/COFF/SymbolTable.cpp
  lld/COFF/Writer.cpp
  lld/COFF/Writer.h
  lld/ELF/Driver.cpp
  lld/ELF/InputFiles.cpp
  lld/ELF/InputSection.cpp
  lld/ELF/LinkerScript.cpp
  lld/ELF/OutputSections.cpp
  lld/ELF/SymbolTable.cpp
  lld/ELF/SyntheticSections.cpp
  lld/ELF/Target.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70766.231181.patch
Type: text/x-patch
Size: 7548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191127/c14f6012/attachment.bin>


More information about the llvm-commits mailing list