diff options
| author | Rui Ueyama <ruiu@google.com> | 2019-07-11 05:40:30 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2019-07-11 05:40:30 +0000 |
| commit | 136d27ab4de0c1d5dedfecc32a9857be78fa0648 (patch) | |
| tree | ed1d11367899a7567b358b28e687ba179faf4ade /lld/wasm/OutputSegment.h | |
| parent | 51f5079191d53862c7673c73ee48f80df59de00f (diff) | |
| download | bcm5719-llvm-136d27ab4de0c1d5dedfecc32a9857be78fa0648.tar.gz bcm5719-llvm-136d27ab4de0c1d5dedfecc32a9857be78fa0648.zip | |
[Coding style change][lld] Rename variables for non-ELF ports
This patch does the same thing as r365595 to other subdirectories,
which completes the naming style change for the entire lld directory.
With this, the naming style conversion is complete for lld.
Differential Revision: https://reviews.llvm.org/D64473
llvm-svn: 365730
Diffstat (limited to 'lld/wasm/OutputSegment.h')
| -rw-r--r-- | lld/wasm/OutputSegment.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lld/wasm/OutputSegment.h b/lld/wasm/OutputSegment.h index a9679c1d675..14142fbd44f 100644 --- a/lld/wasm/OutputSegment.h +++ b/lld/wasm/OutputSegment.h @@ -20,30 +20,30 @@ class InputSegment; class OutputSegment { public: - OutputSegment(StringRef N, uint32_t Index) : Name(N), Index(Index) {} - - void addInputSegment(InputSegment *InSeg) { - Alignment = std::max(Alignment, InSeg->getAlignment()); - InputSegments.push_back(InSeg); - Size = llvm::alignTo(Size, 1ULL << InSeg->getAlignment()); - InSeg->OutputSeg = this; - InSeg->OutputSegmentOffset = Size; - Size += InSeg->getSize(); + OutputSegment(StringRef n, uint32_t index) : name(n), index(index) {} + + void addInputSegment(InputSegment *inSeg) { + alignment = std::max(alignment, inSeg->getAlignment()); + inputSegments.push_back(inSeg); + size = llvm::alignTo(size, 1ULL << inSeg->getAlignment()); + inSeg->outputSeg = this; + inSeg->outputSegmentOffset = size; + size += inSeg->getSize(); } - StringRef Name; - const uint32_t Index; - uint32_t InitFlags = 0; - uint32_t SectionOffset = 0; - uint32_t Alignment = 0; - uint32_t StartVA = 0; - std::vector<InputSegment *> InputSegments; + StringRef name; + const uint32_t index; + uint32_t initFlags = 0; + uint32_t sectionOffset = 0; + uint32_t alignment = 0; + uint32_t startVA = 0; + std::vector<InputSegment *> inputSegments; // Sum of the size of the all the input segments - uint32_t Size = 0; + uint32_t size = 0; // Segment header - std::string Header; + std::string header; }; } // namespace wasm |

