[CSSPGO] Explicitly disallow Binary and Compact Binary profile format for CSSPGO
authorWenlei He <aktoon@gmail.com>
Sat, 24 Apr 2021 17:37:55 +0000 (10:37 -0700)
committerWenlei He <aktoon@gmail.com>
Mon, 26 Apr 2021 16:10:24 +0000 (09:10 -0700)
commitb2d079379b6c7b3942d728c9b290ae252f7921c5
treeb7d9c55ec7ccd69b5330e0f55ffe96e08e19a5e1
parent153144be40855ca1e35e1bfca082e10f553bb2e5
[CSSPGO] Explicitly disallow Binary and Compact Binary profile format for CSSPGO

CSSPGO only supports text and extended binary profile now. Raw binary does not have the metadata section CSSPGO needs, and Compact binary profile needs special handling for GUID based context names, which is not yet implemented.

Disasslow these two format for CSSPGO profile writing to avoid silently generating invalid profiles.

Differential Revision: https://reviews.llvm.org/D101300
llvm/lib/ProfileData/SampleProfWriter.cpp