summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-04-27 15:32:04 +0000
committerRui Ueyama <ruiu@google.com>2018-04-27 15:32:04 +0000
commit50bf643cfb1a89429095be3ffcdd965f1d670561 (patch)
tree59744b12c12bea518029dd310b0ddd6918bb1b27
parentc855e92ca9cf817d0e816f29ca1bb2edd9380f2e (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud