llvm/test/tools
Petr Pavlu 3a3e8ddebb [LTO] Fix error reporting from lto_module_create_in_local_context()
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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262330 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-01 13:13:49 +00:00
..
dsymutil Fix tests that used CHECK-NEXT-NOT and CHECK-DAG-NOT. 2016-02-26 19:40:34 +00:00
gold Restore "[ThinLTO] Use MD5 hash in function index." with fix 2016-02-10 21:55:02 +00:00
llvm-config Disable all llvm-config tests for now, will investigate later 2016-02-10 17:29:50 +00:00
llvm-cov Fix buildbot failure (hosts without zlib) 2016-02-10 22:05:41 +00:00
llvm-cxxdump [llvm-cxxdump] Remove duplicate code check. 2015-09-15 23:35:32 +00:00
llvm-dwp llvm-dwp: provide diagnostics for duplicate DWO IDs 2016-02-26 07:30:15 +00:00
llvm-lit
llvm-lto [LTO] Fix error reporting from lto_module_create_in_local_context() 2016-03-01 13:13:49 +00:00
llvm-mc [Hexagon] Removing XFAIL on Hexagon target. 2015-11-09 06:15:55 +00:00
llvm-nm Make llvm-nm test consistent with other tests 2016-02-10 23:28:43 +00:00
llvm-objdump [DebugInfo] Support zero-length CIE in the _eh_frame parser 2016-01-27 14:05:35 +00:00
llvm-pdbdump Fix several accidental DOS line endings in source files 2016-01-03 17:22:03 +00:00
llvm-profdata Revert r260064, "Disable llvm/test/tools/llvm-profdata/value-prof.proftext on win32 for now. Investigating." 2016-02-25 08:50:26 +00:00
llvm-readobj Reverts change r261907 and r261918 2016-02-25 20:47:07 +00:00
llvm-size [llvm-size] Make error handling uniform. 2016-02-13 01:38:16 +00:00
llvm-split [SplitModule] In split module utility we should never separate alias with its aliasee. 2016-01-28 18:59:28 +00:00
llvm-symbolizer Make llvm/test/tools/llvm-symbolizer/pdb/pdb.test Py3-compatible. 2016-02-15 13:19:13 +00:00
lto Fix test from r261013 2016-02-16 22:50:19 +00:00
sancov [sancov] print_coverage_points command. 2016-02-27 02:21:44 +00:00
sanstats Introduce sanstats tool and llvm::CreateSanitizerStatReport function. 2016-01-16 00:31:11 +00:00