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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 21:54:23 PST 2019


MaskRay added a comment.

There are some static variables and static data members. Moving them to a central place will change their linkage from internal to external, and thus increase their scope. An alternative is to declare `initFoobar()` for files that define variables with static storage duration and call all `initFoobar()` in a central place.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70766/new/

https://reviews.llvm.org/D70766





More information about the llvm-commits mailing list