global.params.useAvailableExternally -> global.inExtraInliningSemantic.

This will hopefully make the associated code a bit easier
to read.
This commit is contained in:
David Nadlinger
2013-04-01 21:17:13 +02:00
parent 5884f884ed
commit b8cdfad8c0
6 changed files with 9 additions and 8 deletions

View File

@@ -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)