diff options
| -rw-r--r-- | lld/COFF/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 8a9186536ec..659249f55c4 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -337,6 +337,7 @@ bool LinkerDriver::link(int Argc, const char *Argv[]) { // undefined symbols final chance to be resolved successfully. // This is symbol renaming. for (auto *Arg : Args->filtered(OPT_alternatename)) { + // Parse a string of the form of "/alternatename:From=To". StringRef From, To; std::tie(From, To) = StringRef(Arg->getValue()).split('='); if (From.empty() || To.empty()) { @@ -344,7 +345,7 @@ bool LinkerDriver::link(int Argc, const char *Argv[]) { << Arg->getValue() << "\n"; return false; } - // If it's already resolved as some Defined type, do nothing. + // If From is already resolved to a Defined type, do nothing. // Otherwise, rename it to see if To can be resolved instead. if (Symtab.find(From)) continue; |

