[llvm] r345245 - [llvm-exegesis] Fix VC build of r345243.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 25 01:08:58 PDT 2018
Author: courbet
Date: Thu Oct 25 01:08:58 2018
New Revision: 345245
URL: http://llvm.org/viewvc/llvm-project?rev=345245&view=rev
Log:
[llvm-exegesis] Fix VC build of r345243.
"const members cannot be default initialized unless their type has a user defined default constructor"
Make members non-const.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Target.h
Modified: llvm/trunk/tools/llvm-exegesis/lib/Target.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Target.h?rev=345245&r1=345244&r2=345245&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Target.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Target.h Thu Oct 25 01:08:58 2018
@@ -34,29 +34,29 @@ namespace exegesis {
struct PfmCountersInfo {
// An optional name of a performance counter that can be used to measure
// cycles.
- const char *const CycleCounter;
+ const char * CycleCounter;
// An optional name of a performance counter that can be used to measure
// uops.
- const char *const UopsCounter;
+ const char * UopsCounter;
// An IssueCounter specifies how to measure uops issued to specific proc
// resources.
struct IssueCounter {
- const char *const Counter;
+ const char * Counter;
// The name of the ProcResource that this counter measures.
- const char *const ProcResName;
+ const char * ProcResName;
};
// An optional list of IssueCounters.
- const IssueCounter *const IssueCounters;
- const unsigned NumIssueCounters;
+ const IssueCounter * IssueCounters;
+ unsigned NumIssueCounters;
static const PfmCountersInfo Default;
};
struct CpuAndPfmCounters {
- const char *const CpuName;
- const PfmCountersInfo *const PCI;
+ const char * CpuName;
+ const PfmCountersInfo * PCI;
bool operator<(llvm::StringRef S) const {
return llvm::StringRef(CpuName) < S;
}
More information about the llvm-commits
mailing list