Simplify.

llvm-svn: 80176
This commit is contained in:
Daniel Dunbar 2009-08-26 23:12:33 +00:00
parent 004f9203a7
commit e3d14c797d

View File

@ -655,12 +655,12 @@ getMachOSection(const StringRef &Segment, const StringRef &Section,
// Form the name to look up.
SmallString<64> Name;
Name.append(Segment.begin(), Segment.end());
Name += Segment;
Name.push_back(',');
Name.append(Section.begin(), Section.end());
Name += Section;
// Do the lookup, if we have a hit, return it.
const MCSectionMachO *&Entry = Map[StringRef(Name.data(), Name.size())];
const MCSectionMachO *&Entry = Map[Name.str()];
if (Entry) return Entry;
// Otherwise, return a new section.