mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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.
This commit is contained in:
parent
7f62fdae16
commit
512117ce0e
1 changed files with 1 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue