[llvm-commits] [llvm] r80176 - /llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Daniel Dunbar
daniel at zuster.org
Wed Aug 26 16:12:33 PDT 2009
Author: ddunbar
Date: Wed Aug 26 18:12:33 2009
New Revision: 80176
URL: http://llvm.org/viewvc/llvm-project?rev=80176&view=rev
Log:
Simplify.
Modified:
llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=80176&r1=80175&r2=80176&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Wed Aug 26 18:12:33 2009
@@ -655,12 +655,12 @@
// 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.
More information about the llvm-commits
mailing list