[PATCH] D56722: [lld] [ELF] Support for warn-once option

Strahinja Petrovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 17 08:14:17 PST 2019


spetrovic added a comment.

I have something like this in many places:

extern void foo(int a);

int main() {

  int i;
  for (i=0;i<20;i++)
    foo(i);
  return 0;

}

Without warn-once option on this example lld prints 20 error messages (-O2 optimization while making object file), with warn-once option it prints just one error message, so if we have similar code in many places this option might be useful.


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D56722





More information about the llvm-commits mailing list