示例#1
0
文件: CodeGen.cs 项目: zixing131/mono
 public void AddDataDef(DataDef datadef)
 {
     if (data_table [datadef.Name] != null)
     {
         Report.Error("Duplicate global label '" + datadef.Name + "'");
     }
     data_table [datadef.Name] = datadef;
 }
示例#2
0
文件: CodeGen.cs 项目: zixing131/mono
        public PEAPI.DataConstant GetDataConst(string name)
        {
            DataDef def = (DataDef)data_table [name];

            if (def == null)
            {
                return(null);
            }

            return((DataConstant)def.PeapiConstant);
        }
示例#3
0
 public void AddDataDef (DataDef datadef)
 {
         if (data_table [datadef.Name] != null)
                 Report.Error ("Duplicate global label '" + datadef.Name + "'");
         data_table [datadef.Name] = datadef;
 }