diff options
| author | Rui Ueyama <ruiu@google.com> | 2018-04-05 19:37:31 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2018-04-05 19:37:31 +0000 |
| commit | ac95bb1d52c9606f88cf1b3f9889159ce6afe2a2 (patch) | |
| tree | d93ff59f4ea4d7f494f66b83585b15f72f0847ba /lld/wasm/OutputSegment.h | |
| parent | 7a598477aaf742ab4c771be79d532fd2dfc87fbe (diff) | |
| download | bcm5719-llvm-ac95bb1d52c9606f88cf1b3f9889159ce6afe2a2.tar.gz bcm5719-llvm-ac95bb1d52c9606f88cf1b3f9889159ce6afe2a2.zip | |
[WebAssembly] Remove another trivial accessor.
Differential Revision: https://reviews.llvm.org/D43725
llvm-svn: 329336
Diffstat (limited to 'lld/wasm/OutputSegment.h')
| -rw-r--r-- | lld/wasm/OutputSegment.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lld/wasm/OutputSegment.h b/lld/wasm/OutputSegment.h index 79730134290..d5c89cd19f4 100644 --- a/lld/wasm/OutputSegment.h +++ b/lld/wasm/OutputSegment.h @@ -32,12 +32,9 @@ public: Size += InSeg->getSize(); } - uint32_t getSectionOffset() const { return SectionOffset; } - - void setSectionOffset(uint32_t Offset) { SectionOffset = Offset; } - StringRef Name; const uint32_t Index; + uint32_t SectionOffset = 0; uint32_t Alignment = 0; uint32_t StartVA = 0; std::vector<InputSegment *> InputSegments; @@ -47,9 +44,6 @@ public: // Segment header std::string Header; - -private: - uint32_t SectionOffset = 0; }; } // namespace wasm |

