[SampleFDO] Rename llvm-profdata flag -partial-profile to -gen-partial-profile.
authorWei Mi <wmi@google.com>
Tue, 12 May 2020 21:48:22 +0000 (14:48 -0700)
committerWei Mi <wmi@google.com>
Tue, 12 May 2020 22:06:03 +0000 (15:06 -0700)
commit56926ae0faa67ac4c3b75609bfeea2eb324c0851
treee9fccda2c8e469a6d8ebc3fb8ca505f6bdf34587
parent58bc507b6fe6c6276a7c858a7d1de83ca02e999e
[SampleFDO] Rename llvm-profdata flag -partial-profile to -gen-partial-profile.

The internal flag -partial-profile in llvm conflicts with the flag with
the same name in llvm-profdata. The conflict happens in builds with
LLVM_LINK_LLVM_DYLIB enabled. In this case the tools are linked with libLLVM
and we end up with two definitions for the same cl::opt.

The patch renames llvm-profdata flag -partial-profile to -gen-partial-profile.
llvm/test/tools/llvm-profdata/show-prof-info.test
llvm/tools/llvm-profdata/llvm-profdata.cpp