1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/tools/lto
Petr Pavlu b38595a7e2 [LTO] Fix error reporting when a file passed to libLTO is invalid or non-existent
This addresses PR26060 where function lto_module_create() could return nullptr
but lto_get_error_message() returned an empty string.

The error() call after LTOModule::createFromFile() in llvm-lto is then removed
because any error from this function should go through the diagnostic handler in
llvm-lto which will exit the program. The error() call was added because this
previously did not happen when the file was non-existent. This is fixed by the
patch. (The situation that llvm-lto reports an error when the input file does
not exist is tested by llvm/tools/llvm-lto/error.ll).

Differential Revision: http://reviews.llvm.org/D16106

llvm-svn: 258298
2016-01-20 09:03:42 +00:00
..
CMakeLists.txt [CMake] Add LLVM_VERSION_PATCH to the -current_version flag for libLTO and libLLVM. 2015-10-14 07:50:21 +00:00
lto.cpp [LTO] Fix error reporting when a file passed to libLTO is invalid or non-existent 2016-01-20 09:03:42 +00:00
lto.exports lto: Clean up C libLTO interfaces pertaining to linker flags. 2015-06-29 23:09:12 +00:00
LTODisassembler.cpp
Makefile Remove definition of LLVM_VERSION_INFO; this macro is not used by any of the 2014-09-26 21:53:12 +00:00