[lld] r288111 - Add comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 20:17:30 PST 2016


Author: ruiu
Date: Mon Nov 28 22:17:30 2016
New Revision: 288111

URL: http://llvm.org/viewvc/llvm-project?rev=288111&view=rev
Log:
Add comments.

Modified:
    lld/trunk/COFF/DriverUtils.cpp

Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=288111&r1=288110&r2=288111&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Mon Nov 28 22:17:30 2016
@@ -666,8 +666,11 @@ llvm::opt::InputArgList ArgParser::parse
   return Args;
 }
 
+// link.exe has an interesting feature. If LINK environment exists,
+// its contents are handled as a command line string. So you can pass
+// extra arguments using the environment variable.
 llvm::opt::InputArgList ArgParser::parseLINK(ArrayRef<const char *> Args) {
-  // Concatenate LINK env and given arguments and parse them.
+  // Concatenate LINK env and command line arguments, and then parse them.
   Optional<std::string> Env = Process::GetEnv("LINK");
   if (!Env)
     return parse(Args);




More information about the llvm-commits mailing list