From: Zack Rusin Date: Mon, 29 Oct 2007 17:20:55 +0000 (-0400) Subject: Dump only relevant functions when in the debugging output. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75a9018fb90c93033ee5cbade9dd2febdc195d11;p=mesa.git Dump only relevant functions when in the debugging output. --- diff --git a/src/mesa/pipe/llvm/llvmtgsi.cpp b/src/mesa/pipe/llvm/llvmtgsi.cpp index 797843c7c36..94fc708606b 100644 --- a/src/mesa/pipe/llvm/llvmtgsi.cpp +++ b/src/mesa/pipe/llvm/llvmtgsi.cpp @@ -802,14 +802,20 @@ void gallivm_prog_dump(struct gallivm_prog *prog, const char *file_prefix) out << (*mod); out.close(); } else { - std::ostringstream stream; - stream << "execute_shader"; - stream << prog->id; - std::string func_name = stream.str(); - llvm::Function *func = mod->getFunction(func_name.c_str()); - assert(func); + const llvm::Module::FunctionListType &funcs = mod->getFunctionList(); + llvm::Module::FunctionListType::const_iterator itr; std::cout<<"; ---------- Start shader "<id<id<