[lld] 08715e6 - [lld-macho][nfc] Remove unnecessary vertical spacing
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 1 18:23:03 PDT 2021
Author: Jez Ng
Date: 2021-07-01T21:22:38-04:00
New Revision: 08715e6c47f68b7ea985fbd76d4945dfdff0a9aa
URL: https://github.com/llvm/llvm-project/commit/08715e6c47f68b7ea985fbd76d4945dfdff0a9aa
DIFF: https://github.com/llvm/llvm-project/commit/08715e6c47f68b7ea985fbd76d4945dfdff0a9aa.diff
LOG: [lld-macho][nfc] Remove unnecessary vertical spacing
This makes NonLazyPointerSectionBase's style more in line with the rest
of the classes in its file.
Added:
Modified:
lld/MachO/SyntheticSections.h
Removed:
################################################################################
diff --git a/lld/MachO/SyntheticSections.h b/lld/MachO/SyntheticSections.h
index cf464b866d33..b33d5e596c6b 100644
--- a/lld/MachO/SyntheticSections.h
+++ b/lld/MachO/SyntheticSections.h
@@ -113,19 +113,13 @@ class PageZeroSection final : public SyntheticSection {
class NonLazyPointerSectionBase : public SyntheticSection {
public:
NonLazyPointerSectionBase(const char *segname, const char *name);
-
const llvm::SetVector<const Symbol *> &getEntries() const { return entries; }
-
bool isNeeded() const override { return !entries.empty(); }
-
uint64_t getSize() const override {
return entries.size() * target->wordSize;
}
-
void writeTo(uint8_t *buf) const override;
-
void addEntry(Symbol *sym);
-
uint64_t getVA(uint32_t gotIndex) const {
return addr + gotIndex * target->wordSize;
}
More information about the llvm-commits
mailing list