[lld] r231906 - Garbage collect an unused class in Atoms.h
Davide Italiano
davide at freebsd.org
Tue Mar 10 22:31:07 PDT 2015
Author: davide
Date: Wed Mar 11 00:31:07 2015
New Revision: 231906
URL: http://llvm.org/viewvc/llvm-project?rev=231906&view=rev
Log:
Garbage collect an unused class in Atoms.h
This will be replaced by a more generic class to handle
all the default symbols in an executable, e.g. __init_array.
Differential Revision: http://reviews.llvm.org/D8234
Reviewed by: shankare
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=231906&r1=231905&r2=231906&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Atoms.h Wed Mar 11 00:31:07 2015
@@ -843,36 +843,6 @@ public:
ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); }
};
-
-class InitFiniAtom : public SimpleELFDefinedAtom {
- StringRef _section;
-
-public:
- InitFiniAtom(const File &f, StringRef secName)
- : SimpleELFDefinedAtom(f), _section(secName) {}
-
- Scope scope() const override { return scopeGlobal; }
-
- SectionChoice sectionChoice() const override { return sectionCustomRequired; }
-
- StringRef customSectionName() const override { return _section; }
-
- ContentType contentType() const override { return typeData; }
-
- uint64_t size() const override { return rawContent().size(); }
-
- ContentPermissions permissions() const override { return permRW_; }
-
- Alignment alignment() const override { return size(); }
-
-#ifndef NDEBUG
- StringRef name() const override { return _name; }
- std::string _name;
-#else
- StringRef name() const override { return ""; }
-#endif
-};
-
} // end namespace elf
} // end namespace lld
More information about the llvm-commits
mailing list