summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-lto/error.ll
Commit message (Collapse)AuthorAgeFilesLines
* Object: Remove ModuleSummaryIndexObjectFile class.Peter Collingbourne2017-05-011-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D32195 llvm-svn: 301832
* Add a test for r263577: "Add missing error handling in llvm-lto"Mehdi Amini2016-03-191-0/+3
| | | | | | | | On Rafael's suggestion! (also fix a discrepancy between this error message format and the others) From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263860
* [LTO] Fix error reporting from lto_module_create_in_local_context()Petr Pavlu2016-03-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Function lto_module_create_in_local_context() would previously rely on the default LLVMContext being created for it by LTOModule::makeLTOModule(). This context exits the program on error and is not arranged to update sLastStringError in tools/lto/lto.cpp. Function lto_module_create_in_local_context() now creates an LLVMContext by itself, sets it up correctly to its needs and then passes it to LTOModule::createInLocalContext() which takes ownership of the context and keeps it present for the lifetime of the returned LTOModule. Function LTOModule::makeLTOModule() is modified to take a reference to LLVMContext (instead of a pointer) and no longer creates a default context when nullptr is passed to it. Method LTOModule::createInContext() that takes a pointer to LLVMContext is removed because it allows to pass a nullptr to it. Instead LTOModule::createFromBuffer() (that takes a reference to LLVMContext) should be used. Differential Revision: http://reviews.llvm.org/D17715 llvm-svn: 262330
* Fix test on windows.Rafael Espindola2016-01-121-1/+1
| | | | llvm-svn: 257475
* Add a missing error handling to llvm-lto.Rafael Espindola2016-01-111-0/+2
llvm-svn: 257395
OpenPOWER on IntegriCloud