[lld] r282942 - Change for LLVM change r282940.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 13:39:05 PDT 2016
Author: ruiu
Date: Fri Sep 30 15:39:04 2016
New Revision: 282942
URL: http://llvm.org/viewvc/llvm-project?rev=282942&view=rev
Log:
Change for LLVM change r282940.
Modified:
lld/trunk/COFF/PDB.cpp
Modified: lld/trunk/COFF/PDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/PDB.cpp?rev=282942&r1=282941&r2=282942&view=diff
==============================================================================
--- lld/trunk/COFF/PDB.cpp (original)
+++ lld/trunk/COFF/PDB.cpp Fri Sep 30 15:39:04 2016
@@ -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));
}
More information about the llvm-commits
mailing list