From c676fa688d5e5a3385c686cd9d7d60e8bc70e0c5 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Fri, 17 Nov 2023 15:22:28 -0500 Subject: [PATCH] Replace string path with Path(). --- Conf.py | 1 + LLVMImporter.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Conf.py b/Conf.py index 084ceec6..1444e95e 100644 --- a/Conf.py +++ b/Conf.py @@ -36,6 +36,7 @@ class OutputFile(StrEnum): HEXAGON_H = "/rizin/librz/asm/arch/hexagon/hexagon.h" HEXAGON_INSN_H = "/rizin/librz/asm/arch/hexagon/hexagon_insn.h" HEXAGON_REG_TABLES_H = "/rizin/librz/asm/arch/hexagon/hexagon_reg_tables.h" + HEXAGON_DWARF_REG_TABLE_H = "/rizin/librz/analysis/hexagon_dwarf_reg_num_table.inc" class Conf: diff --git a/LLVMImporter.py b/LLVMImporter.py index 35d72c09..5d53b6e3 100755 --- a/LLVMImporter.py +++ b/LLVMImporter.py @@ -949,7 +949,7 @@ def build_hexagon_c(self, path: Path = Conf.get_path(OutputFile.HEXAGON_C)) -> N self.write_src(code, path) - def build_dwarf_reg_num_table(self, path: str = "./rizin/librz/analysis/hexagon_dwarf_reg_num_table.inc"): + def build_dwarf_reg_num_table(self, path: Path = Conf.get_path(OutputFile.HEXAGON_DWARF_REG_TABLE_H)): code = get_generation_warning_c_code() code += "\n" code += "static const char *map_dwarf_reg_to_hexagon_reg(ut32 reg_num) {"