summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-03-20 19:25:34 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-03-20 19:25:34 +0000
commit55a7070beaea3e565a0cf67cee83536342bc47c1 (patch)
treeef946afa75949214011c789e84f90c6f57898cc0
parenta354eedcdb9feeefee0af3ccdb9121b60392e98f (diff)
downloadbcm5719-llvm-55a7070beaea3e565a0cf67cee83536342bc47c1.tar.gz
bcm5719-llvm-55a7070beaea3e565a0cf67cee83536342bc47c1.zip
[ELF][Reader] Remove static ordinal.
llvm-svn: 177561
-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