summary refs log tree commit diff stats
path: root/nim/cgen.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/cgen.pas')
-rw-r--r--nim/cgen.pas8
1 files changed, 2 insertions, 6 deletions
diff --git a/nim/cgen.pas b/nim/cgen.pas
index 2f89c4208..736d4b796 100644
--- a/nim/cgen.pas
+++ b/nim/cgen.pas
@@ -207,10 +207,6 @@ begin
   result.flags := {@set}[];
 end;
 
-procedure freeTemp(p: BProc; const temp: TLoc);
-begin
-end;
-
 // -------------------------- Variable manager ----------------------------
 
 procedure declareGlobalVar(m: BModule; s: PSym);
@@ -318,8 +314,8 @@ var
   tmp: PRope;
 begin
   assert(lib <> nil);
-  if lib.kind = libDynamic then begin
-    lib.kind := libDynamicGenerated;
+  if not lib.generated then begin
+    lib.generated := true;
     useMagic(m, 'nimLoadLibrary');
     useMagic(m, 'nimUnloadLibrary');
     useMagic(m, 'NimStringDesc');