def _initialize_gcomptagdecls(self): if len(self.gcomptagdecls) > 0: return for c in self.xnode.find("global-comptag-declarations").findall( "gcomptagdecl"): key = int(c.find("compinfo").get("ckey")) self.gcomptagdecls[key] = CGCompTag(self, c)
def _initialize_gcomptagdefs(self, xnode): for t in xnode.findall("gcomptag"): compinfo = self.get_compinfo(int(t.get("icinfo"))) location = self.get_location(int(t.get("iloc"))) self.gcomptagdefs[compinfo.get_ckey()] = CGCompTag( compinfo, location)
def _initialize_gcomptagdecls(self,xnode): for t in xnode.findall('gcomptagdecl'): compinfo = self.get_compinfo(int(t.get('icinfo'))) location = self.get_location(int(t.get('iloc'))) self.gcomptagdecls[compinfo.get_ckey()] = CGCompTag(compinfo,location)
def _initialize_gcomptagdecls(self): if len(self.gcomptagdecls) > 0: return for c in self.xnode.find('global-comptag-declarations').findall( 'gcomptagdecl'): key = int(c.find('compinfo').get('ckey')) self.gcomptagdecls[key] = CGCompTag(self, c)