Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion llvm/include/llvm/CGData/StableFunctionMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct StableFunctionMap {
const HashFuncsMapType &getFunctionMap() const { return HashToFuncs; }

/// Get the NameToId vector for serialization.
const SmallVector<std::string> getNames() const { return IdToName; }
ArrayRef<std::string> getNames() const { return IdToName; }

/// Get an existing ID associated with the given name or create a new ID if it
/// doesn't exist.
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CGData/StableFunctionMapRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void StableFunctionMapRecord::serialize(raw_ostream &OS,
support::endian::Writer Writer(OS, endianness::little);

// Write Names.
auto &Names = FunctionMap->getNames();
auto Names = FunctionMap->getNames();
uint32_t ByteSize = 4;
Writer.write<uint32_t>(Names.size());
for (auto &Name : Names) {
Expand Down