Skip to content

Commit a328771

Browse files
s/active/live/g
1 parent 543500a commit a328771

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lld/COFF/Chunks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ uint32_t SectionChunk::getSectionNumber() const {
777777
return s.getIndex() + 1;
778778
}
779779

780-
CommonChunk::CommonChunk(const COFFSymbolRef s) : active(false), sym(s) {
780+
CommonChunk::CommonChunk(const COFFSymbolRef s) : live(false), sym(s) {
781781
// The value of a common symbol is its size. Align all common symbols smaller
782782
// than 32 bytes naturally, i.e. round the size up to the next power of two.
783783
// This is what MSVC link.exe does.

lld/COFF/Chunks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ class CommonChunk : public NonSectionChunk {
522522
uint32_t getOutputCharacteristics() const override;
523523
StringRef getSectionName() const override { return ".bss"; }
524524

525-
bool active;
525+
bool live;
526526

527527
private:
528528
const COFFSymbolRef sym;

lld/COFF/Symbols.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class DefinedCommon : public DefinedCOFF {
237237
: DefinedCOFF(DefinedCommonKind, f, n, s), data(c), size(size) {
238238
this->isExternal = true;
239239
if (c)
240-
c->active = true;
240+
c->live = true;
241241
}
242242

243243
static bool classof(const Symbol *s) {

lld/COFF/Writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ void Writer::createSections() {
11151115
continue;
11161116
}
11171117
if (auto *cc = dyn_cast<CommonChunk>(c)) {
1118-
if (!cc->active)
1118+
if (!cc->live)
11191119
continue;
11201120
}
11211121
StringRef name = c->getSectionName();

0 commit comments

Comments
 (0)