[lld][BP] Fix duplicate section size measurment (#145384)
This commit is contained in:
parent
3e98d2b031
commit
b77c7138a8
@ -319,7 +319,7 @@ auto BPOrderer<D>::computeOrder(
|
|||||||
for (auto dupSecIdx : It->getSecond()) {
|
for (auto dupSecIdx : It->getSecond()) {
|
||||||
const auto *dupIsec = sections[dupSecIdx];
|
const auto *dupIsec = sections[dupSecIdx];
|
||||||
if (orderedSections.insert(dupIsec)) {
|
if (orderedSections.insert(dupIsec)) {
|
||||||
duplicateCodeSize += D::getSize(*isec);
|
duplicateCodeSize += D::getSize(*dupIsec);
|
||||||
++numDuplicateCodeSections;
|
++numDuplicateCodeSections;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -337,7 +337,7 @@ auto BPOrderer<D>::computeOrder(
|
|||||||
for (auto dupSecIdx : It->getSecond()) {
|
for (auto dupSecIdx : It->getSecond()) {
|
||||||
const auto *dupIsec = sections[dupSecIdx];
|
const auto *dupIsec = sections[dupSecIdx];
|
||||||
if (orderedSections.insert(dupIsec)) {
|
if (orderedSections.insert(dupIsec)) {
|
||||||
duplicateDataSize += D::getSize(*isec);
|
duplicateDataSize += D::getSize(*dupIsec);
|
||||||
++numDuplicateDataSections;
|
++numDuplicateDataSections;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user