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 abb594b commit b192f20Copy full SHA for b192f20
bolt/lib/Core/DIEBuilder.cpp
@@ -57,11 +57,9 @@ getDWOName(llvm::DWARFUnit &CU,
57
"DW_AT_dwo_name/DW_AT_GNU_dwo_name does not exist.");
58
if (DwarfOutputPath) {
59
DWOName = std::string(sys::path::filename(DWOName));
60
- auto Iter = NameToIndexMap.find(DWOName);
61
- if (Iter == NameToIndexMap.end())
62
- Iter = NameToIndexMap.insert({DWOName, 0}).first;
63
- DWOName.append(std::to_string(Iter->second));
64
- ++Iter->second;
+ uint32_t &Index = NameToIndexMap[DWOName];
+ DWOName.append(std::to_string(Index));
+ ++Index;
65
}
66
DWOName.append(".dwo");
67
return DWOName;
0 commit comments