[llvm] 7c6514b - [llvm-exegesis] Fix build with !HAS_LIBPFM.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 07:02:42 PDT 2020
Author: Clement Courbet
Date: 2020-04-08T16:02:11+02:00
New Revision: 7c6514bc22c4564448cbaf8d1b1106a3441c13ef
URL: https://github.com/llvm/llvm-project/commit/7c6514bc22c4564448cbaf8d1b1106a3441c13ef
DIFF: https://github.com/llvm/llvm-project/commit/7c6514bc22c4564448cbaf8d1b1106a3441c13ef.diff
LOG: [llvm-exegesis] Fix build with !HAS_LIBPFM.
Fixes 9fb871866e2b.
Added:
Modified:
llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp b/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
index 59c66ab23743..c36bd5c8b9c3 100644
--- a/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
+++ b/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
@@ -122,7 +122,7 @@ int64_t Counter::read() const {
#else
-Counter::Counter(const PerfEvent &Event) {}
+Counter::Counter(PerfEvent &&Event) : Event(std::move(Event)) {}
Counter::~Counter() = default;
More information about the llvm-commits
mailing list