Skip to content

Commit 31e98b1

Browse files
Addressing reviewers (2)
1 parent 16cf271 commit 31e98b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ cl::opt<std::string>
9999
ReadPerfEvents("perf-script-events",
100100
cl::desc("skip perf event collection by supplying a "
101101
"perf-script output in a textual format"),
102-
cl::cat(AggregatorCategory));
102+
cl::ReallyHidden, cl::init(""), cl::cat(AggregatorCategory));
103103

104104
static cl::opt<bool>
105105
TimeAggregator("time-aggr",
@@ -2132,9 +2132,9 @@ std::error_code DataAggregator::parseMMapEvents() {
21322132
assert(MMapInfo.BaseAddress == BinaryMMapInfo[MMapInfo.PID].BaseAddress &&
21332133
"Base address on multiple segment mappings should match");
21342134

2135-
// Update section size.
2136-
uint64_t EndAddress = MMapInfo.MMapAddress + MMapInfo.Size;
2137-
uint64_t Size = EndAddress - BinaryMMapInfo[MMapInfo.PID].BaseAddress;
2135+
// Update mapping size.
2136+
const uint64_t EndAddress = MMapInfo.MMapAddress + MMapInfo.Size;
2137+
const uint64_t Size = EndAddress - BinaryMMapInfo[MMapInfo.PID].BaseAddress;
21382138
if (Size > BinaryMMapInfo[MMapInfo.PID].Size)
21392139
BinaryMMapInfo[MMapInfo.PID].Size = Size;
21402140
}

bolt/unittests/Core/MemoryMaps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- bolt/unittest/Core/MemoryMaps.cpp -------------------------------===//
1+
//===- bolt/unittest/Core/MemoryMaps.cpp ----------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)