HomePhabricator

[CodeGenModule] Set dso_local for Mach-O GlobalValue

Authored by MaskRay on Dec 30 2020, 8:52 PM.

Description

[CodeGenModule] Set dso_local for Mach-O GlobalValue

  • static relocation model: always
  • other relocation models: if isStrongDefinitionForLinker

This will make LLVM IR emitted for COFF/Mach-O and executable ELF similar.