summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp')
-rw-r--r--llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp b/llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp
index 39942afb85c..7ff256f454f 100644
--- a/llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/PerfHelperTest.cpp
@@ -27,13 +27,14 @@ TEST(PerfHelperTest, FunctionalTest) {
std::string CallbackEventName;
std::string CallbackEventNameFullyQualifed;
int64_t CallbackEventCycles;
- Measure(llvm::makeArrayRef(SingleEvent),
- [&](const PerfEvent &Event, int64_t Value) {
- CallbackEventName = Event.name();
- CallbackEventNameFullyQualifed = Event.getPfmEventString();
- CallbackEventCycles = Value;
- },
- EmptyFn);
+ Measure(
+ makeArrayRef(SingleEvent),
+ [&](const PerfEvent &Event, int64_t Value) {
+ CallbackEventName = Event.name();
+ CallbackEventNameFullyQualifed = Event.getPfmEventString();
+ CallbackEventCycles = Value;
+ },
+ EmptyFn);
EXPECT_EQ(CallbackEventName, "CYCLES:u");
EXPECT_THAT(CallbackEventNameFullyQualifed, Not(IsEmpty()));
pfmTerminate();
OpenPOWER on IntegriCloud