I get stuff like: JIT: Stub emitted at [0x7087fd8] for function 'test' JIT: Finished CodeGen of [0x7088028] Function: main: 88 bytes of text, 9 relocations Disassembled code: No disassembler available. See configure help for avaiable options. JIT: Lazily resolving function 'test' In stub ptr = 0x7087ff0 actual ptr = 0x7087fd8 JIT: Finished CodeGen of [0x7088090] Function: test: 12 bytes of text, 0 relocations Disassembled code: No disassembler available. See configure help for avaiable options. It would be much better if the "Disassembled code/No disassembler available" lines just were not printed on targets without a disassembler. -Chris
Currently we're supporting only udis86 library for x86-{32,64} code. So, I assume, that this message should be printed in case of any other target. Right?
s/should/shouldn't
Right. I would suggest that libsystem export a "hasDisassembler()" function. If this returns false, the JIT should not attempt to disassemble the produced code. -chris
Fixed with http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070305/045594.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070305/045595.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070305/045596.html