Skip to content

[memprof] Remove const from the return type of toMemProfRecord #93415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/include/llvm/ProfileData/MemProf.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ struct IndexedMemProfRecord {
// Convert IndexedMemProfRecord to MemProfRecord. Callback is used to
// translate CallStackId to call stacks with frames inline.
MemProfRecord toMemProfRecord(
llvm::function_ref<const llvm::SmallVector<Frame>(const CallStackId)>
Callback) const;
llvm::function_ref<llvm::SmallVector<Frame>(const CallStackId)> Callback)
const;

// Returns the GUID for the function name after canonicalization. For
// memprof, we remove any .llvm suffix added by LTO. MemProfRecords are
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/ProfileData/MemProf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ IndexedMemProfRecord::deserialize(const MemProfSchema &Schema,
}

MemProfRecord IndexedMemProfRecord::toMemProfRecord(
llvm::function_ref<const llvm::SmallVector<Frame>(const CallStackId)>
Callback) const {
llvm::function_ref<llvm::SmallVector<Frame>(const CallStackId)> Callback)
const {
MemProfRecord Record;

Record.AllocSites.reserve(AllocSites.size());
Expand Down
Loading