Skip to content

Commit

Permalink
Revert "Fix and add unittests."
Browse files Browse the repository at this point in the history
This reverts commit 0642a01.
  • Loading branch information
Rot127 committed Mar 16, 2024
1 parent 0642a01 commit 1107755
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/black.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: black

on: [pull_request, push]
on: [pull_request]

jobs:
linter:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flake8

on: [pull_request, push]
on: [pull_request]

jobs:
linter:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: reuse

on: [pull_request, push]
on: [pull_request]

jobs:
linter:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/unittests.yaml

This file was deleted.

7 changes: 3 additions & 4 deletions LLVMImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LLVMImporter:
sub_instruction_names = list()
sub_instructions = dict()
hardware_regs = dict()
rzilcompiler = None
rzil_compiler = None
edited_files: [str] = list()

def __init__(self, build_json: bool, gen_rzil: bool, skip_pcpp: bool, rzil_compile: bool, test_mode=False):
Expand Down Expand Up @@ -202,7 +202,7 @@ def generate_hexagon_json(self):

def setup_rzil_compiler(self):
log("Init compiler")
self.rzilcompiler = Compiler(ArchEnum.HEXAGON)
self.rzil_compiler = Compiler(ArchEnum.HEXAGON)
if not self.skip_pcpp:
self.rzilcompiler.run_preprocessor()

Expand Down Expand Up @@ -352,8 +352,7 @@ def parse_instructions(self) -> None:
t.n = i
t.postfix = f"Succ. compiled: {compiled_insn}/{len(no_pseudo)}"
t.update()
if self.gen_rzil:
self.rzilcompiler.transformer.ext.report_missing_fcns()
self.rzilcompiler.transformer.ext.report_missing_fcns()

log("Parsed {} normal instructions.".format(len(self.normal_instructions)))
log("Parsed {} sub-instructions.".format(len(self.sub_instructions)))
Expand Down

0 comments on commit 1107755

Please sign in to comment.