diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-05-29 14:33:18 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-06-01 10:43:28 +0100 |
commit | 512117ce0e1b32b4e3086a638bf50b966a4724bc (patch) | |
tree | d5bdcace27573a8ebf806a5b8de9d4912b350950 | |
parent | 7f62fdae1629d75dd581d1c57b28c2f099c5ef6b (diff) | |
download | external_mesa3d-512117ce0e1b32b4e3086a638bf50b966a4724bc.zip external_mesa3d-512117ce0e1b32b4e3086a638bf50b966a4724bc.tar.gz external_mesa3d-512117ce0e1b32b4e3086a638bf50b966a4724bc.tar.bz2 |
gallivm: Remove stub disassemblerSymbolLookupCB.
It's incompletete -- it wasn't filling ReferenceType so it was causing
garbagge on the disassembly. Furthermore it seems impossible to get the
jump information through this interface.
The solution for function size problem is to effectively book-keep the
machine code start and end address while JIT'ing.
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 64fb044..9a85248 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -115,18 +115,6 @@ lp_debug_dump_value(LLVMValueRef value) } -static const char * -disassemblerSymbolLookupCB(void *DisInfo, - uint64_t ReferenceValue, - uint64_t *ReferenceType, - uint64_t ReferencePC, - const char **ReferenceName) -{ - // TODO: Maybe this can be used to guess jumps - return NULL; -} - - /* * Disassemble a function, using the LLVM MC disassembler. * @@ -149,7 +137,7 @@ disassemble(const void* func, llvm::raw_ostream & Out) */ std::string Triple = llvm::sys::getProcessTriple(); - LLVMDisasmContextRef D = LLVMCreateDisasm(Triple.c_str(), NULL, 0, NULL, &disassemblerSymbolLookupCB); + LLVMDisasmContextRef D = LLVMCreateDisasm(Triple.c_str(), NULL, 0, NULL, NULL); char outline[1024]; if (!D) { |