summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/HeaderChunks.h
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2013-03-14 16:09:49 +0000
committerShankar Easwaran <shankare@codeaurora.org>2013-03-14 16:09:49 +0000
commit8962feb9155db2b7d7ceabc53f0c57b4e3c889ea (patch)
tree07d6602db6dec450a3765b0ff304170bac386eb4 /lld/lib/ReaderWriter/ELF/HeaderChunks.h
parent0a22bc4156e123d0823b8cbba05a63c626a02ab1 (diff)
downloadbcm5719-llvm-8962feb9155db2b7d7ceabc53f0c57b4e3c889ea.tar.gz
bcm5719-llvm-8962feb9155db2b7d7ceabc53f0c57b4e3c889ea.zip
[lld] remove trailing whitespace
llvm-svn: 177079
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/HeaderChunks.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/HeaderChunks.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lld/lib/ReaderWriter/ELF/HeaderChunks.h b/lld/lib/ReaderWriter/ELF/HeaderChunks.h
index 90bf2108ea0..fe8efddfb0d 100644
--- a/lld/lib/ReaderWriter/ELF/HeaderChunks.h
+++ b/lld/lib/ReaderWriter/ELF/HeaderChunks.h
@@ -95,13 +95,13 @@ public:
/// we are looking for
class FindPhdr {
public:
- FindPhdr(uint64_t type, uint64_t flags, uint64_t flagsClear)
+ FindPhdr(uint64_t type, uint64_t flags, uint64_t flagsClear)
: _type(type)
, _flags(flags)
, _flagsClear(flagsClear)
{}
- bool operator()(const Elf_Phdr *j) const {
+ bool operator()(const Elf_Phdr *j) const {
return ((j->p_type == _type) &&
((j->p_flags & _flags) == _flags) &&
(!(j->p_flags & _flagsClear)));
@@ -248,13 +248,13 @@ public:
SectionHeader(const ELFTargetInfo &, int32_t order);
void appendSection(MergedSections<ELFT> *section);
-
+
void updateSection(Section<ELFT> *section);
-
+
static inline bool classof(const Chunk<ELFT> *c) {
return c->getChunkKind() == Chunk<ELFT>::K_SectionHeader;
}
-
+
void setStringSection(StringTable<ELFT> *s) {
_stringSection = s;
}
@@ -270,7 +270,7 @@ public:
inline uint64_t entsize() {
return sizeof(Elf_Shdr);
}
-
+
inline uint64_t numHeaders() {
return _sectionInfo.size();
}
@@ -295,7 +295,7 @@ SectionHeader<ELFT>::SectionHeader(const ELFTargetInfo &ti, int32_t order)
}
template<class ELFT>
-void
+void
SectionHeader<ELFT>::appendSection(MergedSections<ELFT> *section) {
Elf_Shdr *shdr = new (_sectionAllocate.Allocate<Elf_Shdr>()) Elf_Shdr;
shdr->sh_name = _stringSection->addString(section->name());
@@ -312,7 +312,7 @@ SectionHeader<ELFT>::appendSection(MergedSections<ELFT> *section) {
}
template<class ELFT>
-void
+void
SectionHeader<ELFT>::updateSection(Section<ELFT> *section) {
Elf_Shdr *shdr = _sectionInfo[section->ordinal()];
shdr->sh_type = section->getType();
OpenPOWER on IntegriCloud