[llvm] cda2394 - [NFC][CSSPGO] Rename the name of an enum value.
Hongtao Yu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 13 18:32:29 PDT 2021
Author: Hongtao Yu
Date: 2021-07-13T18:30:16-07:00
New Revision: cda2394d9768f97cbacbbf8a5c6288c1015b981a
URL: https://github.com/llvm/llvm-project/commit/cda2394d9768f97cbacbbf8a5c6288c1015b981a
DIFF: https://github.com/llvm/llvm-project/commit/cda2394d9768f97cbacbbf8a5c6288c1015b981a.diff
LOG: [NFC][CSSPGO] Rename the name of an enum value.
Added:
Modified:
llvm/tools/llvm-profgen/PerfReader.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-profgen/PerfReader.cpp b/llvm/tools/llvm-profgen/PerfReader.cpp
index e1f60adbb8e6..f6b394e7966f 100644
--- a/llvm/tools/llvm-profgen/PerfReader.cpp
+++ b/llvm/tools/llvm-profgen/PerfReader.cpp
@@ -648,7 +648,7 @@ void PerfReader::parseMMap2Event(TraceStream &TraceIt) {
enum EventIndex {
WHOLE_LINE = 0,
PID = 1,
- BASE_ADDRESS = 2,
+ MMAPPED_ADDRESS = 2,
MMAPPED_SIZE = 3,
PAGE_OFFSET = 4,
BINARY_PATH = 5
@@ -665,7 +665,7 @@ void PerfReader::parseMMap2Event(TraceStream &TraceIt) {
}
MMapEvent Event;
Fields[PID].getAsInteger(10, Event.PID);
- Fields[BASE_ADDRESS].getAsInteger(0, Event.Address);
+ Fields[MMAPPED_ADDRESS].getAsInteger(0, Event.Address);
Fields[MMAPPED_SIZE].getAsInteger(0, Event.Size);
Fields[PAGE_OFFSET].getAsInteger(0, Event.Offset);
Event.BinaryPath = Fields[BINARY_PATH];
More information about the llvm-commits
mailing list