File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ static std::vector<object::SectionRef>
106
106
getSectionRefsByNameOrIndex (const object::ObjectFile &Obj,
107
107
ArrayRef<std::string> Sections) {
108
108
std::vector<object::SectionRef> Ret;
109
- std::map<std::string, bool > SecNames;
109
+ std::map<std::string, bool , std::less<> > SecNames;
110
110
std::map<unsigned , bool > SecIndices;
111
111
unsigned SecIndex;
112
112
for (StringRef Section : Sections) {
@@ -119,7 +119,7 @@ getSectionRefsByNameOrIndex(const object::ObjectFile &Obj,
119
119
SecIndex = Obj.isELF () ? 0 : 1 ;
120
120
for (object::SectionRef SecRef : Obj.sections ()) {
121
121
StringRef SecName = unwrapOrError (Obj.getFileName (), SecRef.getName ());
122
- auto NameIt = SecNames.find (std::string ( SecName) );
122
+ auto NameIt = SecNames.find (SecName);
123
123
if (NameIt != SecNames.end ())
124
124
NameIt->second = true ;
125
125
auto IndexIt = SecIndices.find (SecIndex);
You can’t perform that action at this time.
0 commit comments