diff options
| author | Ajax <commial@gmail.com> | 2018-07-02 19:12:53 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-07-03 14:28:18 +0200 |
| commit | d314460a5a19be1f3334baedf0105d9b72fc8620 (patch) | |
| tree | 967c5856dcf37980cf80a2ea48cc7ee0e008e1bd /miasm2/core/parse_asm.py | |
| parent | 68fac2e86cc61eba9adfe520fa0e04a7e8943450 (diff) | |
| download | miasm-d314460a5a19be1f3334baedf0105d9b72fc8620.tar.gz miasm-d314460a5a19be1f3334baedf0105d9b72fc8620.zip | |
Update symbol_pool's deprecated API -> LocationDB
Diffstat (limited to 'miasm2/core/parse_asm.py')
| -rw-r--r-- | miasm2/core/parse_asm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py index e40351cd..7efa17d0 100644 --- a/miasm2/core/parse_asm.py +++ b/miasm2/core/parse_asm.py @@ -67,7 +67,7 @@ def guess_next_new_label(loc_db): gen_name = "loc_%.8X" while True: name = gen_name % i - label = loc_db.getby_name(name) + label = loc_db.get_name_location(name) if label is None: return loc_db.add_location(name) i += 1 @@ -121,7 +121,7 @@ def parse_txt(mnemo, attrib, txt, loc_db=None): match_re = LABEL_RE.match(line) if match_re: label_name = match_re.group(1) - label = loc_db.getby_name_create(label_name) + label = loc_db.get_or_create_name_location(label_name) lines.append(label) continue # directive @@ -190,7 +190,7 @@ def parse_txt(mnemo, attrib, txt, loc_db=None): match_re = LABEL_RE.match(line) if match_re: label_name = match_re.group(1) - label = loc_db.getby_name_create(label_name) + label = loc_db.get_or_create_name_location(label_name) lines.append(label) continue |