Go to file
Rafael Espindola 476a7f9293 Pre-compute the tail of the archive
An archive looks like

<header>
<symbol table>
<tail>

The symbol table refers to offsets in the tail. A complication is that
we would like to support symbol tables that use 64 bit offsets if it
turns out that any of the offsets is too big.

This patch changes the archive writer to first compute the tail. We
cannot just compute one big StringRef since that would require reading
every member upfront, but we can represent it as a series of
StringRefs.

Having done that it is much easier to compute the symbol table and all
offsets are computed before it is written. With this if there is an
accounting problem it will show up with a regular symbol table, not
just when a 64 bit one is needed.

llvm-svn: 314844
2017-10-03 20:59:43 +00:00
clang Suppress -Wmissing-braces warning when aggregate-initializing a struct with a single field that is itself an aggregate. 2017-10-03 20:36:00 +00:00
clang-tools-extra Fix hicpp-signed-bitwise.cpp test on Windows, where the MSVC ABI changes enum underlying types 2017-10-03 20:37:06 +00:00
compiler-rt Revert "[XRay][compiler-rt] Use a hand-written circular buffer in BufferQueue" 2017-10-03 11:40:54 +00:00
debuginfo-tests Revert r313600 due to bot failures on Green Dragon. 2017-09-19 14:51:37 +00:00
libclc integer/sub_sat: Use clang builtin instead of llvm asm 2017-10-02 18:39:03 +00:00
libcxx Fix test suite misconfiguration on OS X 2017-10-03 02:25:05 +00:00
libcxxabi Fix ASAN build with older compiler-rt versions. 2017-09-14 22:37:34 +00:00
libunwind build: use POSITION_INDEPENDENT_CODE instead of -fPIC 2017-10-03 20:22:26 +00:00
lld Move fetchIfLazy up so that the following comment makes sense. 2017-10-03 20:45:09 +00:00
lldb [lldb] Fix initialization of m_debug_cu_index_map 2017-10-03 19:56:21 +00:00
llgo
llvm Pre-compute the tail of the archive 2017-10-03 20:59:43 +00:00
openmp [test] Fix uninitialized memory in omp_taskloop_grainsize.c 2017-09-29 13:53:03 +00:00
parallel-libs
polly XFAIL two test that fail VerifyDFSNumbers DominatorTree check 2017-10-03 14:31:53 +00:00