projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e31a6b
)
ELFObjectWriter: Delete redundant registerSymbol
author
Fangrui Song
<i@maskray.me>
Sat, 13 Feb 2021 20:01:37 +0000
(12:01 -0800)
committer
Fangrui Song
<i@maskray.me>
Sat, 13 Feb 2021 20:01:37 +0000
(12:01 -0800)
MCELFStreamer::changeSection has registered the group signature symbol.
llvm/lib/MC/ELFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/ELFObjectWriter.cpp
b/llvm/lib/MC/ELFObjectWriter.cpp
index
f7d8837
..
714fc98
100644
(file)
--- a/
llvm/lib/MC/ELFObjectWriter.cpp
+++ b/
llvm/lib/MC/ELFObjectWriter.cpp
@@
-1119,7
+1119,6
@@
uint64_t ELFWriter::writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) {
MCSectionELF *RelSection = createRelocationSection(Ctx, Section);
if (SignatureSymbol) {
- Asm.registerSymbol(*SignatureSymbol);
unsigned &GroupIdx = RevGroupMap[SignatureSymbol];
if (!GroupIdx) {
MCSectionELF *Group = Ctx.createELFGroupSection(SignatureSymbol);