[PATCH] D37712: Add support for mllvm to the MinGW driver
Martell Malone via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 14:18:33 PDT 2017
martell added inline comments.
================
Comment at: MinGW/Driver.cpp:162-163
+ for (auto *A : Args.filtered(OPT_mllvm))
+ Add("-mllvm:" + StringRef(A->getValue()));
+
----------------
ruiu wrote:
> Can this appear more than once?
Yes,
both `ELF/Driver.cpp` and `COFF/Driver.cpp` handle it like this
```
std::vector<const char *> V;
V.push_back("lld-link (LLVM option parsing)");
for (auto *Arg : Args.filtered(OPT_mllvm))
V.push_back(Arg->getValue());
cl::ParseCommandLineOptions(V.size(), V.data());
```
Repository:
rL LLVM
https://reviews.llvm.org/D37712
More information about the llvm-commits
mailing list