diff options
author | Bob Haarman <llvm@inglorion.net> | 2018-04-24 23:16:39 +0000 |
---|---|---|
committer | Bob Haarman <llvm@inglorion.net> | 2018-04-24 23:16:39 +0000 |
commit | 8832f8899680298297b591b1a02957429fda1a6a (patch) | |
tree | a39a443761759c5dbf556343cc5e6d901c1eb322 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ffa650a183b9a5d8208623ac602cb7aa0881792f (diff) | |
download | bcm5719-llvm-8832f8899680298297b591b1a02957429fda1a6a.tar.gz bcm5719-llvm-8832f8899680298297b591b1a02957429fda1a6a.zip |
[COFF] create MemoryBuffers without requiring NUL terminators
Summary:
In a number of places in the COFF linker, we were calling
MemoryBuffer::getFile() with default parameters. This causes LLVM to
NUL-terminate the buffers, which can prevent them from being memory
mapped. Since we operate on binary and do not use NUL as an indicator
of the end of the file content, this change causes us to not require
the NUL terminator anymore.
Reviewers: ruiu, pcc
Reviewed By: ruiu
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D45909
llvm-svn: 330786
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions