summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-26 23:12:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-26 23:12:33 +0000
commitb039caa1c3440d4017d2fd0ef1bc1be6689ab0c8 (patch)
tree36768941ac5e5ef7320240ff93f2953258504131 /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent3c912f66c8e0baebeb369043a18228faedca2f9d (diff)
downloadbcm5719-llvm-b039caa1c3440d4017d2fd0ef1bc1be6689ab0c8.tar.gz
bcm5719-llvm-b039caa1c3440d4017d2fd0ef1bc1be6689ab0c8.zip
Simplify.
llvm-svn: 80176
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 84b1b93ab01..b2ee95501fd 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud