[libc] Remove unnecessary subdirectory layers in utils/hdrgen (#121363)

Two extra layers of subdirectory for a handful of single-symbol
Python source files did not improve anything, and it complicated
integration of the hdrgen Python outside the LLVM CMake build.
This commit is contained in:
Roland McGrath 2024-12-30 17:28:59 -08:00 committed by GitHub
parent f385542f62
commit 07e13b764d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 6 deletions

View File

@ -11,13 +11,14 @@
import yaml
import argparse
from pathlib import Path
from header import HeaderFile
from enumeration import Enumeration
from function import Function
from gpu_headers import GpuHeaderFile as GpuHeader
from class_implementation.classes.macro import Macro
from class_implementation.classes.type import Type
from class_implementation.classes.function import Function
from class_implementation.classes.enumeration import Enumeration
from class_implementation.classes.object import Object
from header import HeaderFile
from macro import Macro
from object import Object
from type import Type
def yaml_to_classes(yaml_data, header_class, entry_points=None):