Add comments.

llvm-svn: 288111
This commit is contained in:
Rui Ueyama 2016-11-29 04:17:30 +00:00
parent bd2a812ff0
commit e5e407beb4
1 changed files with 4 additions and 1 deletions

View File

@ -666,8 +666,11 @@ llvm::opt::InputArgList ArgParser::parse(ArrayRef<const char *> ArgsArr) {
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);