mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Simplify.
llvm-svn: 80176
This commit is contained in:
parent
004f9203a7
commit
e3d14c797d
@ -655,12 +655,12 @@ getMachOSection(const StringRef &Segment, const StringRef &Section,
|
|||||||
|
|
||||||
// Form the name to look up.
|
// Form the name to look up.
|
||||||
SmallString<64> Name;
|
SmallString<64> Name;
|
||||||
Name.append(Segment.begin(), Segment.end());
|
Name += Segment;
|
||||||
Name.push_back(',');
|
Name.push_back(',');
|
||||||
Name.append(Section.begin(), Section.end());
|
Name += Section;
|
||||||
|
|
||||||
// Do the lookup, if we have a hit, return it.
|
// 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;
|
if (Entry) return Entry;
|
||||||
|
|
||||||
// Otherwise, return a new section.
|
// Otherwise, return a new section.
|
||||||
|
Loading…
Reference in New Issue
Block a user