diff options
author | Clement Courbet <courbet@google.com> | 2018-10-25 08:08:58 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-10-25 08:08:58 +0000 |
commit | fa99b36e4d60fd8af9e437476e962d27f2fe9e2b (patch) | |
tree | 503b3afcbd1141dd6b6360f9f7b185a2b2370f97 /llvm/tools/llvm-exegesis/lib/Target.h | |
parent | 8902c885d609ebdd35eb6bbb080e27954b97dac4 (diff) | |
download | bcm5719-llvm-fa99b36e4d60fd8af9e437476e962d27f2fe9e2b.tar.gz bcm5719-llvm-fa99b36e4d60fd8af9e437476e962d27f2fe9e2b.zip |
[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.
llvm-svn: 345245
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Target.h')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/Target.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Target.h b/llvm/tools/llvm-exegesis/lib/Target.h index a6ec36bebb3..7f349026ece 100644 --- a/llvm/tools/llvm-exegesis/lib/Target.h +++ b/llvm/tools/llvm-exegesis/lib/Target.h @@ -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; } |