Skip to content

Commit 332fc71

Browse files
committed
Fix odd variable names.
llvm-svn: 365875
1 parent 67ab269 commit 332fc71

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lld/COFF/Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct Configuration {
113113
std::vector<llvm::StringRef> argv;
114114

115115
// Symbols in this set are considered as live by the garbage collector.
116-
std::vector<Symbol *> gCRoot;
116+
std::vector<Symbol *> gcroot;
117117

118118
std::set<std::string> noDefaultLibs;
119119
bool noDefaultLibAll = false;

lld/COFF/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ Symbol *LinkerDriver::addUndefined(StringRef name) {
497497
Symbol *b = symtab->addUndefined(name);
498498
if (!b->isGCRoot) {
499499
b->isGCRoot = true;
500-
config->gCRoot.push_back(b);
500+
config->gcroot.push_back(b);
501501
}
502502
return b;
503503
}

lld/COFF/InputFiles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ void BitcodeFile::parse() {
832832
}
833833
symbols.push_back(sym);
834834
if (objSym.isUsed())
835-
config->gCRoot.push_back(sym);
835+
config->gcroot.push_back(sym);
836836
}
837837
directives = obj->getCOFFLinkerOpts();
838838
}

lld/COFF/MarkLive.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
namespace lld {
1616
namespace coff {
1717

18-
static Timer gCTimer("GC", Timer::root());
18+
static Timer gctimer("GC", Timer::root());
1919

2020
// Set live bit on for each reachable chunk. Unmarked (unreachable)
2121
// COMDAT chunks will be ignored by Writer, so they will be excluded
2222
// from the final output.
2323
void markLive(ArrayRef<Chunk *> chunks) {
24-
ScopedTimer t(gCTimer);
24+
ScopedTimer t(gctimer);
2525

2626
// We build up a worklist of sections which have been marked as live. We only
2727
// push into the worklist when we discover an unmarked section, and we mark
@@ -51,7 +51,7 @@ void markLive(ArrayRef<Chunk *> chunks) {
5151
};
5252

5353
// Add GC root chunks.
54-
for (Symbol *b : config->gCRoot)
54+
for (Symbol *b : config->gcroot)
5555
addSym(b);
5656

5757
while (!worklist.empty()) {

lld/COFF/SymbolTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void SymbolTable::reportRemainingUndefines() {
293293
if (undefs.empty() && localImports.empty())
294294
return;
295295

296-
for (Symbol *b : config->gCRoot) {
296+
for (Symbol *b : config->gcroot) {
297297
if (undefs.count(b))
298298
errorOrWarn("<root>: undefined symbol: " + toString(*b));
299299
if (config->warnLocallyDefinedImported)

0 commit comments

Comments
 (0)