Avoid copying the data of in-memory preambles
authorIlya Biryukov <ibiryukov@google.com>
Fri, 24 Nov 2017 13:12:38 +0000 (13:12 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Fri, 24 Nov 2017 13:12:38 +0000 (13:12 +0000)
commit8318f61bb87b15e21572e7650ad7c0a6b7e327b8
tree914fc5268be85f03827d6b4ad6078e89a6907ea8
parent2660cc96dd683e4e252e4909af84a86d360994f4
Avoid copying the data of in-memory preambles

Summary: Preambles are large and we should avoid copying them.

Reviewers: bkramer, klimek

Reviewed By: bkramer

Subscribers: cfe-commits

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

llvm-svn: 318945
clang/include/clang/Frontend/PrecompiledPreamble.h
clang/lib/Frontend/PrecompiledPreamble.cpp