[lld] r238718 - Fix comments.
Rui Ueyama
ruiu at google.com
Sun May 31 20:55:02 PDT 2015
Author: ruiu
Date: Sun May 31 22:55:02 2015
New Revision: 238718
URL: http://llvm.org/viewvc/llvm-project?rev=238718&view=rev
Log:
Fix comments.
Modified:
lld/trunk/COFF/Driver.cpp
lld/trunk/COFF/Symbols.h
lld/trunk/COFF/Writer.cpp
Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=238718&r1=238717&r2=238718&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Sun May 31 22:55:02 2015
@@ -331,7 +331,7 @@ bool LinkerDriver::link(int Argc, const
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)) {
Modified: lld/trunk/COFF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Symbols.h?rev=238718&r1=238717&r2=238718&view=diff
==============================================================================
--- lld/trunk/COFF/Symbols.h (original)
+++ lld/trunk/COFF/Symbols.h Sun May 31 22:55:02 2015
@@ -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; }
Modified: lld/trunk/COFF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.cpp?rev=238718&r1=238717&r2=238718&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.cpp (original)
+++ lld/trunk/COFF/Writer.cpp Sun May 31 22:55:02 2015
@@ -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) {
More information about the llvm-commits
mailing list