diff options
author | Rui Ueyama <ruiu@google.com> | 2018-04-27 15:32:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-04-27 15:32:04 +0000 |
commit | 50bf643cfb1a89429095be3ffcdd965f1d670561 (patch) | |
tree | 59744b12c12bea518029dd310b0ddd6918bb1b27 | |
parent | c855e92ca9cf817d0e816f29ca1bb2edd9380f2e (diff) | |
download | bcm5719-llvm-50bf643cfb1a89429095be3ffcdd965f1d670561.tar.gz bcm5719-llvm-50bf643cfb1a89429095be3ffcdd965f1d670561.zip |
Do not set RequiresNullTerminator. NFC.
When reading object files, we don't need '\0' at end of each file.
llvm-svn: 331045
-rw-r--r-- | lld/ELF/InputFiles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 27d39c670d3..f74a058079b 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -63,7 +63,7 @@ Optional<MemoryBufferRef> elf::readFile(StringRef Path) { log(Path); - auto MBOrErr = MemoryBuffer::getFile(Path); + auto MBOrErr = MemoryBuffer::getFile(Path, -1, false); if (auto EC = MBOrErr.getError()) { error("cannot open " + Path + ": " + EC.message()); return None; |