From 7f113dc875e33242fd15a55c843ab2c0e5e1c14f Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 6 Oct 2024 19:35:20 +0200 Subject: [PATCH] exports more helpers that are needed by nif-gear2 (#24247) (cherry picked from commit 7f2e6a1359795d67970954094f92f8d15f2f6c7f) --- compiler/pipelines.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/pipelines.nim b/compiler/pipelines.nim index 55e7fe8923..5fddb046f0 100644 --- a/compiler/pipelines.nim +++ b/compiler/pipelines.nim @@ -47,9 +47,8 @@ proc processPipeline(graph: ModuleGraph; semNode: PNode; bModule: PPassContext): of NonePass: raiseAssert "use setPipeLinePass to set a proper PipelinePass" -proc processImplicitImports(graph: ModuleGraph; implicits: seq[string], nodeKind: TNodeKind, - m: PSym, ctx: PContext, bModule: PPassContext, idgen: IdGenerator, - ) = +proc processImplicitImports*(graph: ModuleGraph; implicits: seq[string], nodeKind: TNodeKind, + m: PSym, ctx: PContext, bModule: PPassContext, idgen: IdGenerator) = # XXX fixme this should actually be relative to the config file! let relativeTo = toFullPath(graph.config, m.info) for module in items(implicits): @@ -64,7 +63,7 @@ proc processImplicitImports(graph: ModuleGraph; implicits: seq[string], nodeKind if semNode == nil or processPipeline(graph, semNode, bModule) == nil: break -proc prePass(c: PContext; n: PNode) = +proc prePass*(c: PContext; n: PNode) = for son in n: if son.kind == nkPragma: for s in son: