]> git.sur5r.net Git - cc65/blobdiff - src/cc65/function.c
Rewrote literal handling. Literals are now saved together with other function
[cc65] / src / cc65 / function.c
index dcc625a690c0d5213a7404d88ab5fcb4dbf150d0..8944d10077583c722124f0b19c75a8c5cf5f0921 100644 (file)
@@ -359,7 +359,7 @@ static void F_RestoreRegVars (Function* F)
 }
 
 
-
+    
 /*****************************************************************************/
 /*                                          code                                    */
 /*****************************************************************************/
@@ -542,9 +542,8 @@ void NewFunc (SymEntry* Func)
     /* Eat the closing brace */
     ConsumeRCurly ();
 
-    /* Dump the literal pool, the restore the old one */
-    DumpLiteralPool ();
-    PopLiteralPool ();
+    /* Restore the old literal pool, remembering the one for the function */
+    Func->V.F.LitPool = PopLiteralPool ();
 
     /* Switch back to the old segments */
     PopSegments ();