We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff3b18 commit b0d1c51Copy full SHA for b0d1c51
llvm/lib/DebugInfo/LogicalView/Readers/LVCodeViewReader.cpp
@@ -162,11 +162,12 @@ void LVCodeViewReader::cacheRelocations() {
162
for (const SectionRef &Section : getObj().sections()) {
163
const coff_section *CoffSection = getObj().getCOFFSection(Section);
164
165
+ auto &RM = RelocMap[CoffSection];
166
for (const RelocationRef &Relocacion : Section.relocations())
- RelocMap[CoffSection].push_back(Relocacion);
167
+ RM.push_back(Relocacion);
168
169
// Sort relocations by address.
- llvm::sort(RelocMap[CoffSection], [](RelocationRef L, RelocationRef R) {
170
+ llvm::sort(RM, [](RelocationRef L, RelocationRef R) {
171
return L.getOffset() < R.getOffset();
172
});
173
}
0 commit comments