ChainedIncludesSource: avoid copying n*(n+1)/2 file contents into memory
authorAlp Toker <alp@nuanti.com>
Mon, 7 Jul 2014 11:06:51 +0000 (11:06 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 7 Jul 2014 11:06:51 +0000 (11:06 +0000)
commit7eb95e21d7798c46577ddb33e3d8f87f3e1bb15f
tree0dd0b5a80a8a1591ad4b1c72c399be096a17e1c4
parentd0993e00773842b14806aaa8d810b1b1dce6bd61
ChainedIncludesSource: avoid copying n*(n+1)/2 file contents into memory

Just reference the data instead with shallow MemoryBuffer instances.

llvm-svn: 212450
clang/lib/Frontend/ChainedIncludesSource.cpp