[lld] r177561 - [ELF][Reader] Remove static ordinal.
Michael J. Spencer
bigcheesegs at gmail.com
Wed Mar 20 12:25:35 PDT 2013
Author: mspencer
Date: Wed Mar 20 14:25:34 2013
New Revision: 177561
URL: http://llvm.org/viewvc/llvm-project?rev=177561&view=rev
Log:
[ELF][Reader] Remove static ordinal.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Atoms.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Atoms.h?rev=177561&r1=177560&r2=177561&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Atoms.h Wed Mar 20 14:25:34 2013
@@ -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;
More information about the llvm-commits
mailing list