projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6047515
)
Simplify.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 26 Aug 2009 23:12:33 +0000
(23:12 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 26 Aug 2009 23:12:33 +0000
(23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80176
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetLoweringObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetLoweringObjectFile.cpp
b/lib/Target/TargetLoweringObjectFile.cpp
index 84b1b93ab01b11ea9123f9a09a79cd32c4142ac6..b2ee95501fd8adb8dd9c8a9a9bc8827576d930da 100644
(file)
--- 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.