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:
5a0d6b7
)
Save a map lookup. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 5 Jun 2015 17:54:25 +0000
(17:54 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 5 Jun 2015 17:54:25 +0000
(17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239168
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/ELFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/ELFObjectWriter.cpp
b/lib/MC/ELFObjectWriter.cpp
index 2a31d731efd10287d0d13d9ab8a05e0574fe7ec3..554c299cdb3a5167de97085c6c8b2aed84585d28 100644
(file)
--- a/
lib/MC/ELFObjectWriter.cpp
+++ b/
lib/MC/ELFObjectWriter.cpp
@@
-1219,9
+1219,11
@@
void ELFObjectWriter::writeObject(MCAssembler &Asm,
Group->setAlignment(4);
Groups.push_back(Group);
}
- GroupMembers[SignatureSymbol].push_back(&Section);
+ std::vector<const MCSectionELF *> &Members =
+ GroupMembers[SignatureSymbol];
+ Members.push_back(&Section);
if (RelSection)
-
GroupMembers[SignatureSymbol]
.push_back(RelSection);
+
Members
.push_back(RelSection);
}
SectionIndexMap[&Section] = addToSectionTable(&Section);