[libc-commits] [libc] 27d3e44 - [libc][newhdrgen] Fix NameError in yaml_to_classes.py (#114952)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 5 09:19:57 PST 2024
Author: OverMighty
Date: 2024-11-05T18:19:53+01:00
New Revision: 27d3e447d6a04b03f44b1cdedbc1e9a64fc21ce3
URL: https://github.com/llvm/llvm-project/commit/27d3e447d6a04b03f44b1cdedbc1e9a64fc21ce3
DIFF: https://github.com/llvm/llvm-project/commit/27d3e447d6a04b03f44b1cdedbc1e9a64fc21ce3.diff
LOG: [libc][newhdrgen] Fix NameError in yaml_to_classes.py (#114952)
Fixes "NameError: name 'yaml_file' is not defined" that would be raised
whenever running yaml_to_classes.py with the --add_function option since
commit 2e6d451d1565814415e2692ef8e5c3942d4c11a2.
Added:
Modified:
libc/newhdrgen/yaml_to_classes.py
Removed:
################################################################################
diff --git a/libc/newhdrgen/yaml_to_classes.py b/libc/newhdrgen/yaml_to_classes.py
index a295058f7dc821..0e8ca2d8a82b0c 100644
--- a/libc/newhdrgen/yaml_to_classes.py
+++ b/libc/newhdrgen/yaml_to_classes.py
@@ -253,7 +253,7 @@ def main():
args = parser.parse_args()
if args.add_function:
- add_function_to_yaml(yaml_file, args.add_function)
+ add_function_to_yaml(args.yaml_file, args.add_function)
header_class = GpuHeader if args.export_decls else HeaderFile
header = load_yaml_file(args.yaml_file, header_class, args.entry_points)
More information about the libc-commits
mailing list