mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
i965g: Don't dump pads or dwords aliases.
This commit is contained in:
parent
09454f68e5
commit
31b8b1dd36
2 changed files with 8 additions and 265 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -40,6 +40,7 @@ copyright = '''
|
|||
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
||||
from pygccxml import parser
|
||||
from pygccxml import declarations
|
||||
|
|
@ -53,6 +54,11 @@ from pygccxml.declarations import type_visitor
|
|||
enums = True
|
||||
|
||||
|
||||
def vars_filter(variable):
|
||||
name = variable.name
|
||||
return not re.match('^pad\d*', name) and name != 'dword'
|
||||
|
||||
|
||||
class decl_dumper_t(decl_visitor.decl_visitor_t):
|
||||
|
||||
def __init__(self, stream, instance = '', decl = None):
|
||||
|
|
@ -69,7 +75,8 @@ class decl_dumper_t(decl_visitor.decl_visitor_t):
|
|||
assert self.decl.class_type in ('struct', 'union')
|
||||
|
||||
for variable in class_.variables(recursive = False):
|
||||
dump_type(self.stream, self._instance + '.' + variable.name, variable.type)
|
||||
if vars_filter(variable):
|
||||
dump_type(self.stream, self._instance + '.' + variable.name, variable.type)
|
||||
|
||||
def visit_enumeration(self):
|
||||
if enums:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue