Skip to content

Commit

Permalink
Replace string path with Path().
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 17, 2023
1 parent d06020f commit c676fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class OutputFile(StrEnum):
HEXAGON_H = "<REPO>/rizin/librz/asm/arch/hexagon/hexagon.h"
HEXAGON_INSN_H = "<REPO>/rizin/librz/asm/arch/hexagon/hexagon_insn.h"
HEXAGON_REG_TABLES_H = "<REPO>/rizin/librz/asm/arch/hexagon/hexagon_reg_tables.h"
HEXAGON_DWARF_REG_TABLE_H = "<REPO>/rizin/librz/analysis/hexagon_dwarf_reg_num_table.inc"


class Conf:
Expand Down
2 changes: 1 addition & 1 deletion LLVMImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) {"
Expand Down

0 comments on commit c676fa6

Please sign in to comment.