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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)