gallivm: When disassemble a function, start by printing out its name.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 31 Oct 2014 23:09:02 +0000 (23:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 3 Nov 2014 14:47:00 +0000 (14:47 +0000)
To help recognize what's supposed to do.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index bad65c2c0ed38018782c4d40085a1b528e4ed30a..4f9546a1f5d42bb551c74ff355ebb2cd8c3b55f0 100644 (file)
@@ -410,6 +410,7 @@ disassemble(const void* func, llvm::raw_ostream & Out)
 extern "C" void
 lp_disassemble(LLVMValueRef func, const void *code) {
    raw_debug_ostream Out;
+   Out << LLVMGetValueName(func) << ":\n";
    disassemble(code, Out);
 }