[llvm-libtool] Emit warnings for files without symbols
authorAlexander Shaposhnikov <alexshap@fb.com>
Thu, 11 Feb 2021 21:46:49 +0000 (13:46 -0800)
committerAlexander Shaposhnikov <alexshap@fb.com>
Wed, 17 Feb 2021 01:52:12 +0000 (17:52 -0800)
commitcdcb60a820571f7384920fb534ce23e7568bfc03
treee31f8b935204a90ee3b6802e59f33f15ea89fd2c
parentc62b737ad655f189cf76f4324ba04317133d6648
[llvm-libtool] Emit warnings for files without symbols

1. Emit warnings for files without symbols.
2. Add -no_warning_for_no_symbols.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D95843
llvm/docs/CommandGuide/llvm-libtool-darwin.rst
llvm/test/tools/llvm-libtool-darwin/no-symbols-warning.test [new file with mode: 0644]
llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp