[llvm] r329177 - [llvm-exegesis] Do not initialize FileDescriptor when libpfm is not
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 4 05:12:38 PDT 2018
Author: courbet
Date: Wed Apr 4 05:12:38 2018
New Revision: 329177
URL: http://llvm.org/viewvc/llvm-project?rev=329177&view=rev
Log:
[llvm-exegesis] Do not initialize FileDescriptor when libpfm is not
available.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/PerfHelper.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/PerfHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/PerfHelper.cpp?rev=329177&r1=329176&r2=329177&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/PerfHelper.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/PerfHelper.cpp Wed Apr 4 05:12:38 2018
@@ -113,7 +113,7 @@ int64_t Counter::read() const {
#else
-Counter::Counter(const PerfEvent &Event) : FileDescriptor(-1) {}
+Counter::Counter(const PerfEvent &Event) {}
Counter::~Counter() = default;
More information about the llvm-commits
mailing list