mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
isDefaultLibSymbol(): Exclude all instantiated symbols with -linkonce-templates
This commit is contained in:
parent
67c8ee6603
commit
8f45c22d21
1 changed files with 3 additions and 0 deletions
|
@ -1671,6 +1671,9 @@ std::string llvmTypeToString(llvm::Type *type) {
|
|||
}
|
||||
|
||||
bool isDefaultLibSymbol(Dsymbol *sym) {
|
||||
if (defineOnDeclare(sym))
|
||||
return false;
|
||||
|
||||
auto mod = sym->getModule();
|
||||
if (!mod)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue