mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-11 01:44:10 +02:00
global.params.useAvailableExternally -> global.inExtraInliningSemantic.
This will hopefully make the associated code a bit easier to read.
This commit is contained in:
@@ -1606,7 +1606,7 @@ bool mustDefineSymbol(Dsymbol* s)
|
||||
if (fd->isArrayOp == 1)
|
||||
return true;
|
||||
|
||||
if (global.params.useAvailableExternally && fd->availableExternally) {
|
||||
if (global.inExtraInliningSemantic && fd->availableExternally) {
|
||||
// Emit extra functions if we're inlining.
|
||||
// These will get available_externally linkage,
|
||||
// so they shouldn't end up in object code.
|
||||
@@ -1637,7 +1637,7 @@ bool mustDefineSymbol(Dsymbol* s)
|
||||
|
||||
// Inlining checks may create some variable and class declarations
|
||||
// we don't need to emit.
|
||||
if (global.params.useAvailableExternally)
|
||||
if (global.inExtraInliningSemantic)
|
||||
{
|
||||
if (VarDeclaration* vd = s->isVarDeclaration())
|
||||
if (vd->availableExternally)
|
||||
|
||||
Reference in New Issue
Block a user