Parcourir la source

Fix odd variable names.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@365875 91177308-0d34-0410-b5e6-96231b3b80d8
Rui Ueyama il y a 6 ans
Parent
commit
107a06abce
5 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 1 1
      COFF/Config.h
  2. 1 1
      COFF/Driver.cpp
  3. 1 1
      COFF/InputFiles.cpp
  4. 3 3
      COFF/MarkLive.cpp
  5. 1 1
      COFF/SymbolTable.cpp

+ 1 - 1
COFF/Config.h

@@ -113,7 +113,7 @@ struct Configuration {
   std::vector<llvm::StringRef> argv;
 
   // Symbols in this set are considered as live by the garbage collector.
-  std::vector<Symbol *> gCRoot;
+  std::vector<Symbol *> gcroot;
 
   std::set<std::string> noDefaultLibs;
   bool noDefaultLibAll = false;

+ 1 - 1
COFF/Driver.cpp

@@ -497,7 +497,7 @@ Symbol *LinkerDriver::addUndefined(StringRef name) {
   Symbol *b = symtab->addUndefined(name);
   if (!b->isGCRoot) {
     b->isGCRoot = true;
-    config->gCRoot.push_back(b);
+    config->gcroot.push_back(b);
   }
   return b;
 }

+ 1 - 1
COFF/InputFiles.cpp

@@ -832,7 +832,7 @@ void BitcodeFile::parse() {
     }
     symbols.push_back(sym);
     if (objSym.isUsed())
-      config->gCRoot.push_back(sym);
+      config->gcroot.push_back(sym);
   }
   directives = obj->getCOFFLinkerOpts();
 }

+ 3 - 3
COFF/MarkLive.cpp

@@ -15,13 +15,13 @@
 namespace lld {
 namespace coff {
 
-static Timer gCTimer("GC", Timer::root());
+static Timer gctimer("GC", Timer::root());
 
 // Set live bit on for each reachable chunk. Unmarked (unreachable)
 // COMDAT chunks will be ignored by Writer, so they will be excluded
 // from the final output.
 void markLive(ArrayRef<Chunk *> chunks) {
-  ScopedTimer t(gCTimer);
+  ScopedTimer t(gctimer);
 
   // We build up a worklist of sections which have been marked as live. We only
   // push into the worklist when we discover an unmarked section, and we mark
@@ -51,7 +51,7 @@ void markLive(ArrayRef<Chunk *> chunks) {
   };
 
   // Add GC root chunks.
-  for (Symbol *b : config->gCRoot)
+  for (Symbol *b : config->gcroot)
     addSym(b);
 
   while (!worklist.empty()) {

+ 1 - 1
COFF/SymbolTable.cpp

@@ -293,7 +293,7 @@ void SymbolTable::reportRemainingUndefines() {
   if (undefs.empty() && localImports.empty())
     return;
 
-  for (Symbol *b : config->gCRoot) {
+  for (Symbol *b : config->gcroot) {
     if (undefs.count(b))
       errorOrWarn("<root>: undefined symbol: " + toString(*b));
     if (config->warnLocallyDefinedImported)