File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 1515namespace lld {
1616namespace 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.
2323void 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 ()) {
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments