mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 06:53:53 +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.
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user