Changeset 13914


Ignore:
Timestamp:
Oct 30, 2019 4:10:47 PM (13 days ago)
Author:
jwedin
Message:

Moved the unitTempMap to UtilInterface. Updated the comment about the temp names accumulating over all tests since this does not seem to be accurate. #5865

Location:
branches/dev-jw-2590/Compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-jw-2590/Compiler/GenericCodeGen/src/jastadd/ExternalCEvalTag.jrag

    r11541 r13914  
    5050    }
    5151   
    52     /* Used when unit testing. Temp names will accumulate over all tests */
    53     private static final Map<String,String> unitTempMap = new HashMap<String,String>();
    54    
    5552    public  void generate(CodeStream str) {
    5653        if (ext == null) {
     
    5855            for (FExternalStmt ext : fClass.myExternals()) {
    5956                if (!ext.isConstructorStmt() && !ext.isDestructorStmt()) {
    60                     generate_wrap(str, ext, unitCgc, unitTempMap);
     57                    generate_wrap(str, ext, unitCgc, fClass.root().getUtilInterface().unitTempMap);
    6158                }
    6259            }
  • branches/dev-jw-2590/Compiler/ModelicaCompiler/src/jastadd/UtilInterface.jrag

    r13732 r13914  
    174174        }
    175175    }
     176
     177    /* Used when unit testing. */
     178    public final Map<String, String> UtilInterface.unitTempMap = new HashMap<>();
    176179}
Note: See TracChangeset for help on using the changeset viewer.