diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-03-20 19:25:34 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-03-20 19:25:34 +0000 |
commit | 55a7070beaea3e565a0cf67cee83536342bc47c1 (patch) | |
tree | ef946afa75949214011c789e84f90c6f57898cc0 | |
parent | a354eedcdb9feeefee0af3ccdb9121b60392e98f (diff) | |
download | bcm5719-llvm-55a7070beaea3e565a0cf67cee83536342bc47c1.tar.gz bcm5719-llvm-55a7070beaea3e565a0cf67cee83536342bc47c1.zip |
[ELF][Reader] Remove static ordinal.
llvm-svn: 177561
-rw-r--r-- | lld/lib/ReaderWriter/ELF/Atoms.h | 5 |
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; |