From 450f422b49853c4ad74d80331902faedaf841fa2 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 1 Nov 2013 21:11:43 +0000 Subject: [PATCH] [PECOFF] Remove unnecessary assertion. Bugs that would be caught by this assertion would also be caught by RoundTripYAMLPass test. We've enabled the pass for PECOFF, so we can remove this. llvm-svn: 193886 --- lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp index e710c53b45de..66260d36c902 100644 --- a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp @@ -807,19 +807,6 @@ public: : _PECOFFLinkingContext(context), _numSections(0), _imageSizeInMemory(PAGE_SIZE), _imageSizeOnDisk(0) {} - // Make sure there are no duplicate atoms in the file. RoundTripYAMLPass also - // fails if there are duplicate atoms. This is a temporary measure until we - // enable the pass for PECOFF port. - void verifyFile(const File &linkedFile) { -#ifndef NDEBUG - std::set set; - for (const DefinedAtom *atom : linkedFile.defined()) { - assert(set.count(atom) == 0); - set.insert(atom); - } -#endif - } - // Create all chunks that consist of the output file. void build(const File &linkedFile) { // Create file chunks and add them to the list. @@ -890,7 +877,6 @@ public: } virtual error_code writeFile(const File &linkedFile, StringRef path) { - verifyFile(linkedFile); this->build(linkedFile); uint64_t totalSize = _chunks.back()->fileOffset() + _chunks.back()->size();