[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
This commit is contained in:
parent
aa5b4dc868
commit
450f422b49
|
@ -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<const DefinedAtom *> 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();
|
||||
|
|
Loading…
Reference in New Issue