Move a piece of code above some local variable definitions to make their scope narrower.

llvm-svn: 313178
This commit is contained in:
Rui Ueyama 2017-09-13 19:40:07 +00:00
parent 72e8b55bab
commit 7d306a598e
1 changed files with 2 additions and 3 deletions

View File

@ -146,6 +146,8 @@ bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) {
if (Args.hasArg(OPT_shared))
Add("-dll");
if (Args.hasArg(OPT_verbose))
Add("-verbose");
if (auto *A = Args.getLastArg(OPT_m)) {
StringRef S = A->getValue();
@ -201,9 +203,6 @@ bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) {
}
}
if (Args.hasArg(OPT_verbose))
Add("-verbose");
if (Args.hasArg(OPT_verbose) || Args.hasArg(OPT__HASH_HASH_HASH))
outs() << llvm::join(LinkArgs, " ") << "\n";