Rev 8980 | Rev 8989 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8980 | Rev 8982 | ||
---|---|---|---|
Line 1961... | Line 1961... | ||
1961 | 1961 | ||
1962 | if dump_symbols: |
1962 | if dump_symbols: |
1963 | for asm_element in elements: |
1963 | for asm_element in elements: |
Line 1964... | Line -... | ||
1964 | asm_element.dump() |
- | |
1965 | - | ||
1966 | if print_stats: |
- | |
1967 | print("--stats is not nimplmented") |
1964 | asm_element.dump() |
1968 | 1965 | ||
1969 | if clean_generated_stuff: |
1966 | if clean_generated_stuff: |
1970 | kernel_files_set = set(kernel_files) |
1967 | kernel_files_set = set(kernel_files) |
1971 | for file in kernel_files: |
1968 | for file in kernel_files: |
Line 1981... | Line 1978... | ||
1981 | for element in elements: |
1978 | for element in elements: |
1982 | print(f"[{i + 1}/{len(elements)}] Emitting {element.name} from {element.location}") |
1979 | print(f"[{i + 1}/{len(elements)}] Emitting {element.name} from {element.location}") |
1983 | element.emit(doxygen_src_path) |
1980 | element.emit(doxygen_src_path) |
1984 | i += 1 |
1981 | i += 1 |
Line -... | Line 1982... | ||
- | 1982 | ||
- | 1983 | if print_stats: |
|
- | 1984 | var_count = 0 |
|
- | 1985 | mac_count = 0 |
|
- | 1986 | lab_count = 0 |
|
- | 1987 | fun_count = 0 |
|
- | 1988 | uni_count = 0 |
|
- | 1989 | str_count = 0 |
|
- | 1990 | for element in elements: |
|
- | 1991 | if type(element) == AsmVariable: |
|
- | 1992 | var_count += 1 |
|
- | 1993 | elif type(element) == AsmMacro: |
|
- | 1994 | mac_count += 1 |
|
- | 1995 | elif type(element) == AsmLabel: |
|
- | 1996 | lab_count += 1 |
|
- | 1997 | elif type(element) == AsmFunction: |
|
- | 1998 | fun_count += 1 |
|
- | 1999 | elif type(element) == AsmUnion: |
|
- | 2000 | uni_count += 1 |
|
- | 2001 | elif type(element) == AsmStruct: |
|
- | 2002 | str_count += 1 |
|
- | 2003 | print(f'Parsed variable count: {var_count}') |
|
- | 2004 | print(f'Parsed macro count: {mac_count}') |
|
- | 2005 | print(f'Parsed label count: {lab_count}') |
|
- | 2006 | print(f'Parsed function count: {fun_count}') |
|
- | 2007 | print(f'Parsed union type count: {uni_count}') |
|
- | 2008 | print(f'Parsed structure type count: {str_count}') |
|
1985 | 2009 | ||
1986 | if enable_warnings: |
2010 | if enable_warnings: |