diff options
author | Michel Dänzer <[email protected]> | 2009-01-12 12:39:31 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2009-01-12 12:39:31 +0100 |
commit | f43e621e2207f819f756d9b9539b2a25b7b936fe (patch) | |
tree | ebebb0f19dc77ccb1356eea3024bbe632294a82b /src/gallium/auxiliary/gallivm | |
parent | 359bbe7432babb328a313756b9d1e46e187914b8 (diff) |
gallivm: Print error message from ParseBitcodeFile() in case it fails.
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/instructionssoa.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 "<<m_builtins<<std::endl; + m_builtins = ParseBitcodeFile(buffer, &ErrMsg); + std::cout<<"Builtins created at "<<m_builtins<<" ("<<ErrMsg<<")"<<std::endl; assert(m_builtins); createDependencies(); } |