Skip to content

Commit

Permalink
[libc] Remove unnecessary subdirectory layers in utils/hdrgen (llvm#1…
Browse files Browse the repository at this point in the history
…21363)

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.
  • Loading branch information
frobtech authored Dec 31, 2024
1 parent f385542 commit 07e13b7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 7 additions & 6 deletions libc/utils/hdrgen/yaml_to_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 07e13b7

Please sign in to comment.