From 7d306a598ef8e86065ad1f444c661c126ac05cfa Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 13 Sep 2017 19:40:07 +0000 Subject: [PATCH] Move a piece of code above some local variable definitions to make their scope narrower. llvm-svn: 313178 --- lld/MinGW/Driver.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index d8d1e544b6b2..77bf057559c9 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/MinGW/Driver.cpp @@ -146,6 +146,8 @@ bool mingw::link(ArrayRef 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 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";