diff options
-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)); } |