Permalink
Browse files

Removed the duplicate exporting of template functions.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Jun 16, 2017
1 parent 3699574 commit 2f99e83b85c79da1fa5067ce2c963f0274cb9248
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Generator/Passes/GenerateSymbolsPass.cs
@@ -125,8 +125,8 @@ private bool NeedsSymbol(Function function)
var method = function as Method;
return function.IsGenerated && !function.IsDeleted && !function.IsDependent &&
!function.IsPure &&
(!string.IsNullOrEmpty(function.Body) || function.IsImplicit ||
function.Namespace is ClassTemplateSpecialization) &&
(!string.IsNullOrEmpty(function.Body) || function.IsImplicit) &&
!(function.Namespace is ClassTemplateSpecialization) &&
// we don't need symbols for virtual functions anyway
(method == null || (!method.IsVirtual && !method.IsSynthetized &&
(!method.IsConstructor || !((Class) method.Namespace).IsAbstract))) &&

0 comments on commit 2f99e83

Please sign in to comment.