summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-10-31 23:09:02 +0000
committerJosé Fonseca <jfonseca@vmware.com>2014-11-03 14:47:00 +0000
commitb7e447d323872415ae21e2411b366770fb3687c1 (patch)
tree0827eb6622325670d9d30d8075be2b69db43bf25 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parent5695303563b76f625439b495fe41428256aba39e (diff)
downloadexternal_mesa3d-b7e447d323872415ae21e2411b366770fb3687c1.zip
external_mesa3d-b7e447d323872415ae21e2411b366770fb3687c1.tar.gz
external_mesa3d-b7e447d323872415ae21e2411b366770fb3687c1.tar.bz2
gallivm: When disassemble a function, start by printing out its name.
To help recognize what's supposed to do. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index bad65c2..4f9546a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -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);
}