[ProfData] Change type of options from int to uint64_t.
authorminglotus-6 <mingmingl@google.com>
Tue, 15 Feb 2022 07:18:18 +0000 (23:18 -0800)
committerminglotus-6 <mingmingl@google.com>
Tue, 15 Feb 2022 18:59:06 +0000 (10:59 -0800)
- Reader uses option values to override uint64_t values.

Differential Revision: https://reviews.llvm.org/D119810

llvm/lib/ProfileData/ProfileSummaryBuilder.cpp

index 8ec26b0..7fce2e2 100644 (file)
@@ -59,12 +59,12 @@ cl::opt<unsigned> ProfileSummaryLargeWorkingSetSizeThreshold(
 
 // The next two options override the counts derived from summary computation and
 // are useful for debugging purposes.
-cl::opt<int> ProfileSummaryHotCount(
+cl::opt<uint64_t> ProfileSummaryHotCount(
     "profile-summary-hot-count", cl::ReallyHidden, cl::ZeroOrMore,
     cl::desc("A fixed hot count that overrides the count derived from"
              " profile-summary-cutoff-hot"));
 
-cl::opt<int> ProfileSummaryColdCount(
+cl::opt<uint64_t> ProfileSummaryColdCount(
     "profile-summary-cold-count", cl::ReallyHidden, cl::ZeroOrMore,
     cl::desc("A fixed cold count that overrides the count derived from"
              " profile-summary-cutoff-cold"));