[PATCH] D115024: [ifs] Patch llvm-ifs to allow output multiple types of stub file at the same time

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 9 10:36:36 PST 2021


phosek added inline comments.


================
Comment at: llvm/tools/llvm-ifs/llvm-ifs.cpp:496
+    // Check if output path for individual format.
+    if (OutputELFFilePath.getNumOccurrences() == 1) {
+      Error TargetError = validateIFSTarget(Stub, true);
----------------
haowei wrote:
> phosek wrote:
> > Does this mean that if someone passes `--output-elf=foo --output-elf=bar` we won't take this branch because `OutputELFFilePath.getNumOccurrences() == 2`?
> Ah, you got a point. Yes, it won't take this branch. I should add error that these flags cannot be used more than once, at least in this revision.
Another option would be to allow these flags to be set multiple times and follow the "last one wins" strategy.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115024/new/

https://reviews.llvm.org/D115024



More information about the llvm-commits mailing list