summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorPetr Pavlu <petr.pavlu@arm.com>2016-01-20 09:03:42 +0000
committerPetr Pavlu <petr.pavlu@arm.com>2016-01-20 09:03:42 +0000
commiteba303923857fbb102491eecc03f5f53d203419f (patch)
tree1e7851c24b9f58da7c6dd987e88da2b9b4fa2eb9 /lldb/packages/Python/lldbsuite/test/configuration.py
parent3b1c260d22dd6ebc569cf5ba39bc19f1f50abf68 (diff)
downloadbcm5719-llvm-eba303923857fbb102491eecc03f5f53d203419f.tar.gz
bcm5719-llvm-eba303923857fbb102491eecc03f5f53d203419f.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud