File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1438,7 +1438,7 @@ void BTFDebug::processGlobals(bool ProcessingMapDef) {
1438
1438
// constant with private linkage and if it won't be in .rodata.str<#>
1439
1439
// and .rodata.cst<#> sections.
1440
1440
if (SecName == " .rodata" && Global.hasPrivateLinkage () &&
1441
- DataSecEntries.find (std::string ( SecName) ) == DataSecEntries.end ()) {
1441
+ DataSecEntries.find (SecName) == DataSecEntries.end ()) {
1442
1442
// skip .rodata.str<#> and .rodata.cst<#> sections
1443
1443
if (!GVKind->isMergeableCString () && !GVKind->isMergeableConst ()) {
1444
1444
DataSecEntries[std::string (SecName)] =
Original file line number Diff line number Diff line change @@ -300,7 +300,8 @@ class BTFDebug : public DebugHandlerBase {
300
300
std::map<uint32_t , std::vector<BTFLineInfo>> LineInfoTable;
301
301
std::map<uint32_t , std::vector<BTFFieldReloc>> FieldRelocTable;
302
302
StringMap<std::vector<std::string>> FileContent;
303
- std::map<std::string, std::unique_ptr<BTFKindDataSec>> DataSecEntries;
303
+ std::map<std::string, std::unique_ptr<BTFKindDataSec>, std::less<>>
304
+ DataSecEntries;
304
305
std::vector<BTFTypeStruct *> StructTypes;
305
306
std::map<const GlobalVariable *, std::pair<int64_t , uint32_t >> PatchImms;
306
307
std::map<const DICompositeType *,
You can’t perform that action at this time.
0 commit comments