Permalink
Browse files

Restored the generation of symbols for defaulted inlines.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Aug 9, 2017
1 parent 9294ea0 commit 95b8405b285c8abff55102d30284f7873a4a8e01
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Generator/Passes/GenerateSymbolsPass.cs
@@ -31,9 +31,9 @@ public override bool VisitASTContext(ASTContext context)
{
var result = base.VisitASTContext(context);
var findSymbolsPass = Context.TranslationUnitPasses.FindPass<FindSymbolsPass>();
GenerateSymbols();
if (remainingCompilationTasks > 0)
findSymbolsPass.Wait = true;
GenerateSymbols();
return result;
}
@@ -126,7 +126,7 @@ private bool NeedsSymbol(Function function)
{
var mangled = function.Mangled;
var method = function as Method;
return function.IsGenerated && !function.IsDeleted && !function.IsDefaulted &&
return function.IsGenerated && !function.IsDeleted &&
!function.IsDependent && !function.IsPure &&
(!string.IsNullOrEmpty(function.Body) || function.IsImplicit) &&
!(function.Namespace is ClassTemplateSpecialization) &&

0 comments on commit 95b8405

Please sign in to comment.