From: Michel Dänzer Date: Mon, 12 Jan 2009 11:39:31 +0000 (+0100) Subject: gallivm: Print error message from ParseBitcodeFile() in case it fails. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f43e621e2207f819f756d9b9539b2a25b7b936fe;p=mesa.git gallivm: Print error message from ParseBitcodeFile() in case it fails. --- diff --git a/src/gallium/auxiliary/gallivm/instructionssoa.cpp b/src/gallium/auxiliary/gallivm/instructionssoa.cpp index ad57acbe1a0..f93a31d54ba 100644 --- a/src/gallium/auxiliary/gallivm/instructionssoa.cpp +++ b/src/gallium/auxiliary/gallivm/instructionssoa.cpp @@ -206,11 +206,12 @@ llvm::Module * InstructionsSoa::currentModule() const void InstructionsSoa::createBuiltins() { + std::string ErrMsg; MemoryBuffer *buffer = MemoryBuffer::getMemBuffer( (const char*)&soabuiltins_data[0], (const char*)&soabuiltins_data[Elements(soabuiltins_data)]); - m_builtins = ParseBitcodeFile(buffer); - std::cout<<"Builtins created at "<