Skip to content

Commit

Permalink
Fix annotated disassembly in ll_prof.py
Browse files Browse the repository at this point in the history
An overzealous removal in
https://crrev.com/9e39a9fff1c2966a3f650a4c31dbbe533886d614
caused the disassembly not to be annotated with ticks, even when
requested.

LOG=N

Review URL: https://codereview.chromium.org/1861323002

Cr-Commit-Position: refs/heads/master@{#35298}
  • Loading branch information
ssanfilippo authored and Commit bot committed Apr 6, 2016
1 parent 7875168 commit cf8de86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/ll_prof.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,12 @@ def __str__(self):
self.origin)

def _GetDisasmLines(self, arch, options):
inplace = True
filename = self.origin
if self.origin == JS_ORIGIN:
inplace = False
filename = options.log + ".ll"
else:
inplace = True
filename = self.origin
return disasm.GetDisasmLines(filename,
self.origin_offset,
self.end_address - self.start_address,
Expand Down

0 comments on commit cf8de86

Please sign in to comment.