forked from OSchip/llvm-project
Move a piece of code above some local variable definitions to make their scope narrower.
llvm-svn: 313178
This commit is contained in:
parent
72e8b55bab
commit
7d306a598e
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue