Skip to content
Merged
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: 3 additions & 1 deletion src/cpp/encoder/aie2ps/report.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ class Debug {
}

std::string add_function(uint32_t file_idx, const std::string& name, offset_type high_pc, offset_type low_pc, uint32_t col, pageid_type pagenum) {
std::string key = std::to_string(file_idx) + "_" + std::to_string(col) + "_" + name;
// source/file/column/page do not overwrite previously recorded functions.
std::string key = std::to_string(file_idx) + "_" + std::to_string(col) + "_"
+ std::to_string(pagenum) + "_" + name;
functions[key] = std::make_shared<Function>(file_idx, name, high_pc, low_pc, col, pagenum);
insertion_order.push_back(key);
return key;
Expand Down
Loading