diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-06-22 10:27:33 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-06-22 10:27:33 +0000 |
commit | 6d448da1bef6ff485b1588136433ba5a58b2ccb0 (patch) | |
tree | e343cf1fa4e0ea268c3ed7622452cf83c248222b /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | e14485a0c61ab217f7a2d6f5c619d0158ad67492 (diff) | |
download | llvm-6d448da1bef6ff485b1588136433ba5a58b2ccb0.zip llvm-6d448da1bef6ff485b1588136433ba5a58b2ccb0.tar.gz llvm-6d448da1bef6ff485b1588136433ba5a58b2ccb0.tar.bz2 |
Revert r335332 "[MC] - Add .stack_size sections into groups and link them with .text"
It broke bots.
http://lab.llvm.org:8011/builders/clang-ppc64le-linux-lnt/builds/12891
http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/9443
http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/25551
llvm-svn: 335333
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 2b5c9c7..b075f22 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -948,24 +948,3 @@ MCSection *MCObjectFileInfo::getDwarfTypesSection(uint64_t Hash) const { return Ctx->getELFSection(".debug_types", ELF::SHT_PROGBITS, ELF::SHF_GROUP, 0, utostr(Hash)); } - -MCSection * -MCObjectFileInfo::getStackSizesSection(const MCSection &TextSec) const { - if (Env != IsELF) - return StackSizesSection; - - const MCSectionELF &ElfSec = static_cast<const MCSectionELF &>(TextSec); - unsigned Flags = ELF::SHF_LINK_ORDER; - StringRef GroupName; - if (const MCSymbol *Group = ElfSec.getGroup()) { - GroupName = Group->getName(); - Flags |= ELF::SHF_GROUP; - } - - const MCSymbol *Link = TextSec.getBeginSymbol(); - auto It = StackSizesUniquing.insert({Link, StackSizesUniquing.size()}); - unsigned UniqueID = It.first->second; - - return Ctx->getELFSection(".stack_sizes", ELF::SHT_PROGBITS, Flags, 0, - GroupName, UniqueID, cast<MCSymbolELF>(Link)); -} |