aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FileCheck.cpp
diff options
context:
space:
mode:
authorDmitry Polukhin <dmitry.polukhin@gmail.com>2020-03-21 13:52:51 -0700
committerDmitry Polukhin <dmitry.polukhin@gmail.com>2020-04-16 07:27:43 -0700
commit30d5946db95fa465d7ee6caceb2b1ff191e3727c (patch)
tree7cbcdca8a8a6c9200a7cb9e705f0c4839f980e51 /llvm/lib/Support/FileCheck.cpp
parentf701d8fa5ff939235dc5cc2a3340bef021c07423 (diff)
downloadllvm-30d5946db95fa465d7ee6caceb2b1ff191e3727c.zip
llvm-30d5946db95fa465d7ee6caceb2b1ff191e3727c.tar.gz
llvm-30d5946db95fa465d7ee6caceb2b1ff191e3727c.tar.bz2
[clang][AST] Support AST files larger than 512M
Summary: Clang uses 32-bit integers for storing bit offsets from the beginning of the file that results in 512M limit on AST file. This diff replaces absolute offsets with relative offsets from the beginning of corresponding data structure when it is possible. And uses 64-bit offsets for DeclOffests and TypeOffssts because these coder AST section may easily exceeds 512M alone. This diff breaks AST file format compatibility so VERSION_MAJOR bumped. Test Plan: Existing clang AST serialization tests Tested on clangd with ~700M and ~900M preamble files Reviewers: rsmith, dexonsmith Subscribers: ilya-biryukov, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76594
Diffstat (limited to 'llvm/lib/Support/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions