summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Target.h
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2016-04-25 20:25:05 +0000
committerSimon Atanasyan <simon@atanasyan.com>2016-04-25 20:25:05 +0000
commit1ef1bf87dc8c26c61a2a51fea4c9d3aadda07d13 (patch)
tree89a8e80bfbd28dd4ac3f0315d3fcddcf4fe431fb /lld/ELF/Target.h
parentd60d96ffae95f32036819239457fd6a9243c69a3 (diff)
downloadbcm5719-llvm-1ef1bf87dc8c26c61a2a51fea4c9d3aadda07d13.tar.gz
bcm5719-llvm-1ef1bf87dc8c26c61a2a51fea4c9d3aadda07d13.zip
[ELF][MIPS] Move MIPS GOT header generation to the GotSection
MIPS is the only target requires GOT header. We already have MIPS specific code in the `GotSection` class, so move MIPS GOT header generation there and delete redundant stuff like `GotHeaderEntriesNum` field and `writeGotHeader` method. Differential Revision: http://reviews.llvm.org/D19465 llvm-svn: 267460
Diffstat (limited to 'lld/ELF/Target.h')
-rw-r--r--lld/ELF/Target.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index 7a74e748190..cb743c754b4 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -29,7 +29,6 @@ public:
virtual bool isTlsGlobalDynamicRel(uint32_t Type) const;
virtual uint32_t getDynRel(uint32_t Type) const { return Type; }
virtual uint32_t getTlsGotRel(uint32_t Type) const { return TlsGotRel; }
- virtual void writeGotHeader(uint8_t *Buf) const {}
virtual void writeGotPltHeader(uint8_t *Buf) const {}
virtual void writeGotPlt(uint8_t *Buf, uint64_t Plt) const {};
virtual uint64_t getImplicitAddend(const uint8_t *Buf, uint32_t Type) const;
@@ -85,7 +84,6 @@ public:
uint32_t TlsOffsetRel;
unsigned PltEntrySize = 8;
unsigned PltZeroSize = 0;
- unsigned GotHeaderEntriesNum = 0;
unsigned GotPltHeaderEntriesNum = 3;
uint32_t ThunkSize = 0;
bool UseLazyBinding = false;
OpenPOWER on IntegriCloud