diff options
author | Easwaran Raman <eraman@google.com> | 2016-03-01 18:59:11 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2016-03-01 18:59:11 +0000 |
commit | 8832e5e2f59ca8001d10965af9a8ad3c9b3604da (patch) | |
tree | 930f87b88e90df68c7750045d08aa8c89b636ba3 /llvm | |
parent | 83fc77b4c0d4358ae5643c687183fad28fc2bf52 (diff) | |
download | bcm5719-llvm-8832e5e2f59ca8001d10965af9a8ad3c9b3604da.tar.gz bcm5719-llvm-8832e5e2f59ca8001d10965af9a8ad3c9b3604da.zip |
Fix breakage caused by r262360.
llvm-svn: 262363
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ProfileData/ProfileCommon.h | 2 | ||||
-rw-r--r-- | llvm/lib/ProfileData/ProfileSummary.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/ProfileData/ProfileCommon.h b/llvm/include/llvm/ProfileData/ProfileCommon.h index 327af91ab2b..92b33b0e7d9 100644 --- a/llvm/include/llvm/ProfileData/ProfileCommon.h +++ b/llvm/include/llvm/ProfileData/ProfileCommon.h @@ -62,7 +62,7 @@ public: private: const Kind PSK; - const char *KindStr[2] = {"InstrProf", "SampleProfile"}; + static const char *KindStr[2]; // We keep track of the number of times a count (block count or samples) // appears in the profile. The map is kept sorted in the descending order of // counts. diff --git a/llvm/lib/ProfileData/ProfileSummary.cpp b/llvm/lib/ProfileData/ProfileSummary.cpp index f3bc5f9dda8..82546eb47d4 100644 --- a/llvm/lib/ProfileData/ProfileSummary.cpp +++ b/llvm/lib/ProfileData/ProfileSummary.cpp @@ -30,6 +30,7 @@ const std::vector<uint32_t> ProfileSummary::DefaultCutoffs( 100000, /* 10% */ 200000, 300000, 400000, 500000, 600000, 500000, 600000, 700000, 800000, 900000, 950000, 990000, 999000, 999900, 999990, 999999}); +const char *ProfileSummary::KindStr[2] = {"InstrProf", "SampleProfile"}; void InstrProfSummary::addRecord(const InstrProfRecord &R) { addEntryCount(R.Counts[0]); |