From e3d14c797d26174dfa78cba8b83eabc93f54f1a3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 26 Aug 2009 23:12:33 +0000 Subject: [PATCH] Simplify. llvm-svn: 80176 --- lib/Target/TargetLoweringObjectFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 84b1b93ab01..b2ee95501fd 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.