Esempio n. 1
0
        public override LLVMValueRef Emit(LLVMBuilderRef context)
        {
            // Create the variable.
            LLVMValueRef variable = LLVM.BuildAlloca(context, ValueType.Emit(), Name);

            // Assign value if applicable.
            if (Value != null)
            {
                LLVM.BuildStore(context, Value.Emit(context), variable);
                SymbolTable.localScope.Add(Name, variable);
            }

            return(variable);
        }