| # Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| ASM_JAR = os.path.join(utils.DEPENDENCIES_DIR, 'org', 'ow2', 'asm', 'asm', |
| ASM_VERSION, 'asm-' + ASM_VERSION + '.jar') |
| ASM_UTIL_JAR = os.path.join(utils.DEPENDENCIES_DIR, 'org', 'ow2', 'asm', |
| 'asm-util-' + ASM_VERSION + '.jar') |
| cmd.append(jdk.GetJavaExecutable()) |
| cp = ":".join([ASM_JAR, ASM_UTIL_JAR]) |
| cmd.append('org.objectweb.asm.util.ASMifier') |
| result = subprocess.check_output(cmd).decode('utf-8') |
| elif arg in ("-help", "--help", "-debug"): |
| print("asmifier.py [--no-debug] <classfile>*") |
| " --no-debug Don't include local variable information in output." |
| except subprocess.CalledProcessError as e: |
| # In case anything relevant was printed to stdout, normally this is already |
| if __name__ == '__main__': |