From cf8de862abde2e92d8441ad66d6bc8f7d8dc3638 Mon Sep 17 00:00:00 2001 From: ssanfilippo Date: Wed, 6 Apr 2016 05:38:16 -0700 Subject: [PATCH] Fix annotated disassembly in ll_prof.py 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} --- tools/ll_prof.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/ll_prof.py b/tools/ll_prof.py index 6d04ab8d73..ca2cb00e4b 100755 --- a/tools/ll_prof.py +++ b/tools/ll_prof.py @@ -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,