Example #1
0
        ////////////////////////////////////////////////////////////////////////////////
        //
        //      Add Function Declarations
        //
        ////////////////////////////////////////////////////////////////////////////////

        public void AddFunctionLoc(FunctionType fnTy)
        {
            this.indexingFunction.Add(IndexEntry.CreateLocal(this.localFunctionCt));

            DefFunction df = new DefFunction(this.functions.Count, fnTy);

            this.functions.Add(df);

            ++this.localFunctionCt;
        }
Example #2
0
        public void AddFunctionImp(string module, string fieldname, FunctionType fnTy)
        {
            this.indexingFunction.Add(IndexEntry.CreateImport(this.importFunctionsCt, module, fieldname));

            DefFunction df = new DefFunction(this.importFunctionsCt, fnTy);

            this.functions.Add(df);

            this.GetOrCreateRecord(module).functions.Add(fieldname, df);

            ++this.importFunctionsCt;
        }