Index: tools/ll_prof.py |
diff --git a/tools/ll_prof.py b/tools/ll_prof.py |
index 6d04ab8d73e20ef41b9900f070c9dee4189f9bc7..ca2cb00e4bc555cebb166716d5ec4465cc17e488 100755 |
--- a/tools/ll_prof.py |
+++ b/tools/ll_prof.py |
@@ -199,8 +199,12 @@ class Code(object): |
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, |