diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-09-30 20:39:04 +0000 | 
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-09-30 20:39:04 +0000 | 
| commit | 5c82eeaf232548da32609330f2f7cf233deea140 (patch) | |
| tree | 7cd046e4b05d11f7b5dd528f05d2cdd374d89365 | |
| parent | 9d9474ba3580010225f77c91ad5e0bb8f87f4be5 (diff) | |
| download | bcm5719-llvm-5c82eeaf232548da32609330f2f7cf233deea140.tar.gz bcm5719-llvm-5c82eeaf232548da32609330f2f7cf233deea140.zip  | |
Change for LLVM change r282940.
llvm-svn: 282942
| -rw-r--r-- | lld/COFF/PDB.cpp | 10 | 
1 files changed, 1 insertions, 9 deletions
diff --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp index dd02a5ae876..333d43c8e6b 100644 --- a/lld/COFF/PDB.cpp +++ b/lld/COFF/PDB.cpp @@ -30,8 +30,6 @@ using namespace llvm::support::endian;  static ExitOnError ExitOnErr; -const int BlockSize = 4096; -  void coff::createPDB(StringRef Path) {    // Create the superblock.    msf::SuperBlock SB; @@ -69,11 +67,5 @@ void coff::createPDB(StringRef Path) {    TpiBuilder.setVersionHeader(pdb::PdbTpiV80);    // Write to a file. -  size_t FileSize = BlockSize * 10; -  auto BufferOrErr = FileOutputBuffer::create(Path, FileSize); -  if (auto EC = BufferOrErr.getError()) -    fatal(EC, "failed to open " + Path); -  auto FileByteStream = -      llvm::make_unique<msf::FileBufferByteStream>(std::move(*BufferOrErr)); -  ExitOnErr(Builder.commit(*FileByteStream)); +  ExitOnErr(Builder.commit(Path));  }  | 

