diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-10-11 01:01:40 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-10-11 01:01:40 +0000 |
| commit | 9aa4ab6f9beeccfd7abf0da24d87626bbbb79abc (patch) | |
| tree | 4f034300e473fe04df817e404622bfa15481d0c4 /lld/COFF/Writer.cpp | |
| parent | 80dca0c78fa1cfbe663d203efa01c45af338f604 (diff) | |
| download | bcm5719-llvm-9aa4ab6f9beeccfd7abf0da24d87626bbbb79abc.tar.gz bcm5719-llvm-9aa4ab6f9beeccfd7abf0da24d87626bbbb79abc.zip | |
Revert "Add section header stream to PDB." because it depends on r283823.
The change this patch depends on was reverted.
llvm-svn: 283837
Diffstat (limited to 'lld/COFF/Writer.cpp')
| -rw-r--r-- | lld/COFF/Writer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp index 8fb532e5a4d..2b02041796d 100644 --- a/lld/COFF/Writer.cpp +++ b/lld/COFF/Writer.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// -#include "Writer.h" #include "Config.h" #include "DLL.h" #include "Error.h" #include "InputFiles.h" -#include "PDB.h" #include "SymbolTable.h" #include "Symbols.h" +#include "Writer.h" #include "lld/Core/Parallel.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" @@ -148,7 +147,6 @@ private: std::unique_ptr<Chunk> DebugDirectory; std::vector<std::unique_ptr<Chunk>> DebugRecords; CVDebugRecordChunk *BuildId = nullptr; - ArrayRef<uint8_t> SectionTable; uint64_t FileSize; uint32_t PointerToSymbolTable = 0; @@ -303,10 +301,6 @@ void Writer::run() { writeSections(); sortExceptionTable(); writeBuildId(); - - if (!Config->PDBPath.empty()) - createPDB(Config->PDBPath, SectionTable); - if (auto EC = Buffer->commit()) fatal(EC, "failed to write the output file"); } @@ -725,8 +719,6 @@ template <typename PEHeaderTy> void Writer::writeHeader() { Sec->writeHeaderTo(Buf); Buf += sizeof(coff_section); } - SectionTable = ArrayRef<uint8_t>( - Buf - OutputSections.size() * sizeof(coff_section), Buf); if (OutputSymtab.empty()) return; |

