From 56987d8f22bed1db63680bf97b0218df8dee2ff9 Mon Sep 17 00:00:00 2001 From: Hongtao Yu Date: Tue, 13 Jul 2021 18:30:16 -0700 Subject: [PATCH] [NFC][CSSPGO] Rename the name of an enum value. --- tools/llvm-profgen/PerfReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-profgen/PerfReader.cpp b/tools/llvm-profgen/PerfReader.cpp index e1f60adbb8e..f6b394e7966 100644 --- a/tools/llvm-profgen/PerfReader.cpp +++ b/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];