mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 03:16:05 +03:00
-fvisibility=hidden: Hide init symbols, TypeInfos and vtables too if the associated aggregate isn't exported (#3129)
This commit is contained in:
parent
ceee37dda2
commit
c1725809c2
10 changed files with 85 additions and 16 deletions
|
@ -254,10 +254,10 @@ llvm::GlobalVariable *declareGlobal(const Loc &loc, llvm::Module &module,
|
|||
bool isThreadLocal = false);
|
||||
|
||||
/// Defines an existing LLVM global, i.e., sets the initial value and finalizes
|
||||
/// its linkage.
|
||||
/// its linkage and visibility.
|
||||
/// Asserts that a global isn't defined multiple times this way.
|
||||
void defineGlobal(llvm::GlobalVariable *global, llvm::Constant *init,
|
||||
Dsymbol *symbolForLinkage);
|
||||
Dsymbol *symbolForLinkageAndVisibility);
|
||||
|
||||
/// Declares (if not already declared) & defines an LLVM global.
|
||||
llvm::GlobalVariable *defineGlobal(const Loc &loc, llvm::Module &module,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue