[BOLT] Allow merge-fdata to take a directory as input
authorYi Kong <yikong@google.com>
Tue, 31 May 2022 13:14:31 +0000 (21:14 +0800)
committerYi Kong <yikong@google.com>
Tue, 31 May 2022 19:01:14 +0000 (03:01 +0800)
commit2a42f7f72a138db541fd3f5c0f14998f197d406d
treec592f4dc1d00b27a320b7cd6fd94f2877a157430
parent9d991da60df492a191b34aa3e75484ddd27e8930
[BOLT] Allow merge-fdata to take a directory as input

and recursively merge all files under said directory. This is similar
to `llvm-profdata merge`.

Differential Revision: https://reviews.llvm.org/D126695
bolt/tools/merge-fdata/merge-fdata.cpp