diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-26 23:12:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-26 23:12:33 +0000 |
commit | 16df208d4eff8414cf4294f9953caabffed1386b (patch) | |
tree | 71b9b2b9eae1807226a6ab0de2080cd9456e0e30 /lib/Target/TargetLoweringObjectFile.cpp | |
parent | 60475154460cc68431a77aec757cd9d5fa4a2dcc (diff) |
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 84b1b93ab0..b2ee95501f 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -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. |