From: Ruiling Song Date: Wed, 17 Sep 2014 03:33:49 +0000 (+0800) Subject: GBE: Output linkModules's error message. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eebdde1fe000fde48f3e1370619d07a1defb2d97;p=contrib%2Fbeignet.git GBE: Output linkModules's error message. Signed-off-by: Ruiling Song Reviewed-by: Junyan He --- diff --git a/backend/src/llvm/llvm_bitcode_link.cpp b/backend/src/llvm/llvm_bitcode_link.cpp index d845479..1365b32 100644 --- a/backend/src/llvm/llvm_bitcode_link.cpp +++ b/backend/src/llvm/llvm_bitcode_link.cpp @@ -204,9 +204,10 @@ namespace gbe /* We use beignet's bitcode as dst because it will have a lot of lazy functions which will not be loaded. */ - if(Linker::LinkModules(clonedLib, mod, Linker::DestroySource, NULL)) { + std::string errorMsg; + if(Linker::LinkModules(clonedLib, mod, Linker::DestroySource, &errorMsg)) { delete clonedLib; - printf("Fatal Error: link the bitcode error\n"); + printf("Fatal Error: link the bitcode error:\n%s\n", errorMsg.c_str()); return NULL; }