1 package org.simantics.scl.compiler.internal.codegen.utils;
\r
3 import org.simantics.scl.compiler.common.names.Name;
\r
4 import org.simantics.scl.compiler.constants.SCLConstant;
\r
5 import org.simantics.scl.compiler.errors.ErrorLog;
\r
6 import org.simantics.scl.compiler.internal.codegen.ssa.SSAModule;
\r
8 public class SSALambdaLiftingContext {
\r
14 public SSALambdaLiftingContext(SSAModule module, ErrorLog errorLog) {
\r
15 this.module = module;
\r
16 this.errorLog = errorLog;
\r
19 public void setParentName(Name parentName) {
\r
20 this.parentName = parentName;
\r
24 public Name createName() {
\r
25 return Name.create(parentName.module, parentName.name + "$" + (++count));
\r
28 public void addConstant(SCLConstant constant) {
\r
29 module.put(constant.getName(), constant);
\r
32 public void validate() {
\r
36 public ErrorLog getErrorLog() {
\r