Go to file
Manman Ren 4a9b0ebe83 Add a parameter for getLazyBitcodeModule to lazily load Metadata.
We only defer loading metadata inside ParseModule when ShouldLazyLoadMetadata
is true and we have not loaded any Metadata block yet.

This commit implements all-or-nothing loading of Metadata. If there is a
request to load any metadata block, we will load all deferred metadata blocks.

We make sure the deferred metadata blocks are loaded before we materialize any
function or a module.

The default value of the added parameter ShouldLazyLoadMetadata for
getLazyBitcodeModule is false, so the default behavior stays the same.

We only set the parameter to true when creating LTOModule in local contexts.
These can only really be used for parsing symbols, so it's unnecessary to ever
load the metadata blocks.

If we are going to enable lazy-loading of Metadata for other usages of
getLazyBitcodeModule, where deferred metadata blocks need to be loaded, we can
expose BitcodeReader::materializeMetadata to Module, similar to
Module::materialize.

rdar://19804575

llvm-svn: 232198
2015-03-13 19:24:30 +00:00
clang MS ABI: Implement __GetExceptionInfo for std::make_exception_ptr 2015-03-13 18:26:17 +00:00
clang-tools-extra Add clangBasic to libdeps according to r232051 since the interface of ASTMatchers was changed. 2015-03-13 03:47:43 +00:00
compiler-rt [Tsan] Fix test.h to work on FreeBSD 2015-03-13 14:08:55 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix bitselect for float/double types v2 2015-03-05 15:31:05 +00:00
libcxx Fix build break on Solaris introduced by r231940 2015-03-13 15:09:42 +00:00
libcxxabi Update copyright year to 2015. 2015-03-12 20:13:54 +00:00
lld LinkerScript: Add -T <scriptfile> option 2015-03-13 18:15:01 +00:00
lldb Extend Platform(s) in order to cache remote executables using ModuleCache and make POSIX dynamic loader to use this flow when attaching to a remote target. 2015-03-13 18:44:56 +00:00
llgo [llgo] update year in LICENSE.txt 2015-03-13 01:36:02 +00:00
llvm Add a parameter for getLazyBitcodeModule to lazily load Metadata. 2015-03-13 19:24:30 +00:00
openmp fix for broken commit 231774 2015-03-10 10:14:57 +00:00
polly Test case updates for explicit type parameter to the gep operator 2015-03-13 18:21:20 +00:00