[PATCH] D43527: Handle --version before handling --mllvm.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 12:26:50 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD325952: Handle --version before handling --mllvm. (authored by ruiu, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D43527?vs=135134&id=135681#toc
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D43527
Files:
wasm/Driver.cpp
Index: wasm/Driver.cpp
===================================================================
--- wasm/Driver.cpp
+++ wasm/Driver.cpp
@@ -233,6 +233,12 @@
return;
}
+ // Handle --version
+ if (Args.hasArg(OPT_version) || Args.hasArg(OPT_v)) {
+ outs() << getLLDVersion() << "\n";
+ return;
+ }
+
// Parse and evaluate -mllvm options.
std::vector<const char *> V;
V.push_back("wasm-ld (LLVM option parsing)");
@@ -242,11 +248,6 @@
errorHandler().ErrorLimit = args::getInteger(Args, OPT_error_limit, 20);
- if (Args.hasArg(OPT_version) || Args.hasArg(OPT_v)) {
- outs() << getLLDVersion() << "\n";
- return;
- }
-
Config->AllowUndefined = Args.hasArg(OPT_allow_undefined);
Config->CheckSignatures =
Args.hasFlag(OPT_check_signatures, OPT_no_check_signatures, false);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43527.135681.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180223/c390c841/attachment.bin>
More information about the llvm-commits
mailing list