diff options
author | Rui Ueyama <ruiu@google.com> | 2018-02-17 20:41:38 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-02-17 20:41:38 +0000 |
commit | b3107476a416bdfc284a17d4a20706bc0d435eb8 (patch) | |
tree | 5f6fc6299ebd33a5f3d799da0b59d14b0f10f116 /lld/COFF/Symbols.h | |
parent | 03c7f3a2d0b5c38c1156e40f40808a393b4627c6 (diff) | |
download | llvm-b3107476a416bdfc284a17d4a20706bc0d435eb8.tar.gz |
Remove an unused accessor and simplify the logic a bit. NFC.
llvm-svn: 325445
Diffstat (limited to 'lld/COFF/Symbols.h')
-rw-r--r-- | lld/COFF/Symbols.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/COFF/Symbols.h b/lld/COFF/Symbols.h index 930ed3cc7430..783965adbd9a 100644 --- a/lld/COFF/Symbols.h +++ b/lld/COFF/Symbols.h @@ -213,11 +213,10 @@ public: uint64_t getRVA() { return VA - Config->ImageBase; } void setVA(uint64_t V) { VA = V; } - // The sentinel absolute symbol section index. Section index relocations - // against absolute symbols resolve to this 16 bit number, and it is the - // largest valid section index plus one. This is written by the Writer. - static uint16_t OutputSectionIndex; - uint16_t getSecIdx() { return OutputSectionIndex; } + // Section index relocations against absolute symbols resolve to + // this 16 bit number, and it is the largest valid section index + // plus one. This variable keeps it. + static uint16_t NumOutputSections; private: uint64_t VA; |