summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/ReaderWriter/ELF/Atoms.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Atoms.h b/lld/lib/ReaderWriter/ELF/Atoms.h
index 2b4da63584e..3b9038bfedf 100644
--- a/lld/lib/ReaderWriter/ELF/Atoms.h
+++ b/lld/lib/ReaderWriter/ELF/Atoms.h
@@ -500,10 +500,7 @@ public:
const Elf_Shdr *section, llvm::ArrayRef<uint8_t> contentData,
uint64_t offset)
: _owningFile(file), _sectionName(sectionName), _section(section),
- _contentData(contentData), _offset(offset) {
- static uint64_t orderNumber = 0;
- _ordinal = ++orderNumber;
- }
+ _contentData(contentData), _offset(offset) {}
virtual const class ELFFile<ELFT> &file() const {
return _owningFile;
OpenPOWER on IntegriCloud