Fix comments.
authorRui Ueyama <ruiu@google.com>
Mon, 1 Jun 2015 03:55:02 +0000 (03:55 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 1 Jun 2015 03:55:02 +0000 (03:55 +0000)
llvm-svn: 238718

lld/COFF/Driver.cpp
lld/COFF/Symbols.h
lld/COFF/Writer.cpp

index 13a9323..b61ba7d 100644 (file)
@@ -331,7 +331,7 @@ bool LinkerDriver::link(int Argc, const char *Argv[]) {
       return false;
     }
     // If it's already resolved as some Defined type, do nothing.
-    // Otherwise, rename it to see if To can be resolved successfully.
+    // Otherwise, rename it to see if To can be resolved instead.
     if (Symtab.find(From))
       continue;
     if (auto EC = Symtab.rename(From, To)) {
index 09cb1bb..9408ee5 100644 (file)
@@ -67,7 +67,7 @@ public:
   // in the Symbol may be mutated by the resolver. If you have a
   // pointer P to a SymbolBody and are not sure whether the resolver
   // has chosen the object among other objects having the same name,
-  // you can access P->getSymbol()->Body to get the resolver's result.
+  // you can access P->Backref->Body to get the resolver's result.
   void setBackref(Symbol *P) { Backref = P; }
   SymbolBody *getReplacement() { return Backref ? Backref->Body : this; }
 
index e049c13..a197d1f 100644 (file)
@@ -317,7 +317,7 @@ void Writer::writeHeader() {
   }
 
   // Section table
-  // Name field in the string table is 8 byte long. Longer names need
+  // Name field in the section table is 8 byte long. Longer names need
   // to be written to the string table. First, construct string table.
   std::vector<char> Strtab;
   for (std::unique_ptr<OutputSection> &Sec : OutputSections) {