diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2017-03-28 17:15:11 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2017-03-28 17:15:11 +0000 |
commit | da4d12a8e563d3f50ca3ce3243720fe30f77523f (patch) | |
tree | 0ab0972ec9ea90ebeccf09bd701da5121fea8000 /llvm/lib/MC/MCELFStreamer.cpp | |
parent | 472b5efc8b37d99989bcedb2e63abc08911b33a7 (diff) | |
download | bcm5719-llvm-da4d12a8e563d3f50ca3ce3243720fe30f77523f.tar.gz bcm5719-llvm-da4d12a8e563d3f50ca3ce3243720fe30f77523f.zip |
Revert "Dont emit Mapping symbols for sections that contain only data."
It breaks some lld tests.
This reverts commit 3a50eea6d9732ab40e9a7aebe6be777b53a8b35c.
llvm-svn: 298932
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCELFStreamer.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp index c8e0223c057..de0791281d2 100644 --- a/llvm/lib/MC/MCELFStreamer.cpp +++ b/llvm/lib/MC/MCELFStreamer.cpp @@ -103,16 +103,6 @@ void MCELFStreamer::EmitLabel(MCSymbol *S, SMLoc Loc) { Symbol->setType(ELF::STT_TLS); } -void MCELFStreamer::EmitLabel(MCSymbol *S, SMLoc Loc, MCFragment *F) { - auto *Symbol = cast<MCSymbolELF>(S); - MCObjectStreamer::EmitLabel(Symbol, Loc, F); - - const MCSectionELF &Section = - static_cast<const MCSectionELF &>(*getCurrentSectionOnly()); - if (Section.getFlags() & ELF::SHF_TLS) - Symbol->setType(ELF::STT_TLS); -} - void MCELFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { // Let the target do whatever target specific stuff it needs to do. getAssembler().getBackend().handleAssemblerFlag(Flag); |