mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user