Skip to content

Commit 07e13b7

Browse files
authored
[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.
1 parent f385542 commit 07e13b7

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

libc/utils/hdrgen/yaml_to_classes.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
import yaml
1212
import argparse
1313
from pathlib import Path
14-
from header import HeaderFile
14+
15+
from enumeration import Enumeration
16+
from function import Function
1517
from gpu_headers import GpuHeaderFile as GpuHeader
16-
from class_implementation.classes.macro import Macro
17-
from class_implementation.classes.type import Type
18-
from class_implementation.classes.function import Function
19-
from class_implementation.classes.enumeration import Enumeration
20-
from class_implementation.classes.object import Object
18+
from header import HeaderFile
19+
from macro import Macro
20+
from object import Object
21+
from type import Type
2122

2223

2324
def yaml_to_classes(yaml_data, header_class, entry_points=None):

0 commit comments

Comments
 (0)