Skip to content

Commit 263b849

Browse files
Add newline to IR output and update version number
1 parent 75231cc commit 263b849

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pythonbpf/codegen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def compile_to_ir(filename: str, output: str):
8484
module.add_named_metadata("llvm.module.flags", debug_info_version)
8585
module.add_named_metadata("llvm.module.flags", dwarf_version)
8686

87-
module.add_named_metadata("llvm.ident", ["llvmlite PythonBPF v0.0.0"])
87+
module.add_named_metadata("llvm.ident", ["llvmlite PythonBPF v0.0.1"])
8888

8989
with open(output, "w") as f:
9090
f.write(f"source_filename = \"{filename}\"\n")
9191
f.write(str(module))
92+
f.write("\n")
9293

9394
return output

pythonbpf/maps_pass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def create_map_debug_info(module, map_global, map_name, map_params):
105105
type_member = module.add_debug_info("DIDerivedType", {
106106
"tag": dc.DW_TAG_member,
107107
"name": "type",
108-
"file": file_metadata, # Use the stored file metadata
108+
"file": file_metadata,
109109
"baseType": type_ptr,
110110
"size": 64,
111111
"offset": 0

0 commit comments

Comments
 (0)