Go to file
Peter Collingbourne 028eb5a3f8 Bitcode: Change reader interface to take memory buffers.
As proposed on llvm-dev:
http://lists.llvm.org/pipermail/llvm-dev/2016-October/106595.html

This change also fixes an API oddity where BitstreamCursor::Read() would
return zero for the first read past the end of the bitstream, but would
report_fatal_error for subsequent reads. Now we always report_fatal_error
for all reads past the end. Updated clients to check for the end of the
bitstream before reading from it.

I also needed to add padding to the invalid bitcode tests in
test/Bitcode/. This is because the streaming interface was not checking that
the file size is a multiple of 4.

Differential Revision: https://reviews.llvm.org/D26219

llvm-svn: 285773
2016-11-02 00:08:19 +00:00
clang Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
clang-tools-extra [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init 2016-11-01 21:26:53 +00:00
compiler-rt [tsan] Enable the tsan/libcxx/ testcase(s) on Darwin 2016-10-31 20:50:15 +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 Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx Protect exceptional paths under libcpp-no-exceptions 2016-11-01 15:46:16 +00:00
libcxxabi Spell libcxxabi-no-threads correctly 2016-10-31 14:14:04 +00:00
libunwind fix _dyld_find_unwind_sections() for pre-10.7. Patch by Jeremy Sequoia 2016-10-31 21:04:17 +00:00
lld Inline a variable that is used only once. 2016-11-01 23:17:47 +00:00
lldb Xfail this while I figure out why the event isn't getting sent. 2016-11-01 22:53:54 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Bitcode: Change reader interface to take memory buffers. 2016-11-02 00:08:19 +00:00
openmp Fixed problem introduced by part of https://reviews.llvm.org/D21196. 2016-11-01 16:19:04 +00:00
parallel-libs [Acxxel] Remove setActiveDeviceForThread 2016-10-28 00:54:02 +00:00
polly [ScopInfo] Make memset etc. affine where possible. 2016-11-01 20:53:11 +00:00