[llvm] r262363 - Fix breakage caused by r262360.
Easwaran Raman via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 10:59:11 PST 2016
Author: eraman
Date: Tue Mar 1 12:59:11 2016
New Revision: 262363
URL: http://llvm.org/viewvc/llvm-project?rev=262363&view=rev
Log:
Fix breakage caused by r262360.
Modified:
llvm/trunk/include/llvm/ProfileData/ProfileCommon.h
llvm/trunk/lib/ProfileData/ProfileSummary.cpp
Modified: llvm/trunk/include/llvm/ProfileData/ProfileCommon.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/ProfileCommon.h?rev=262363&r1=262362&r2=262363&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/ProfileCommon.h (original)
+++ llvm/trunk/include/llvm/ProfileData/ProfileCommon.h Tue Mar 1 12:59:11 2016
@@ -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.
Modified: llvm/trunk/lib/ProfileData/ProfileSummary.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/ProfileSummary.cpp?rev=262363&r1=262362&r2=262363&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/ProfileSummary.cpp (original)
+++ llvm/trunk/lib/ProfileData/ProfileSummary.cpp Tue Mar 1 12:59:11 2016
@@ -30,6 +30,7 @@ const std::vector<uint32_t> ProfileSumma
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]);
More information about the llvm-commits
mailing list