summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/ELFEmitter.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-10-03 14:04:47 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-10-03 14:04:47 +0000
commit9f6cf2a081b2a010151b0bbf8c51704532be7aba (patch)
tree2a694c30f41b59ce91124ee4de0c10898ff199b4 /llvm/lib/ObjectYAML/ELFEmitter.cpp
parent32cbabfecb8d48d676be683bb0c8ce082294638e (diff)
downloadbcm5719-llvm-9f6cf2a081b2a010151b0bbf8c51704532be7aba.tar.gz
bcm5719-llvm-9f6cf2a081b2a010151b0bbf8c51704532be7aba.zip
Revert r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG sections."
It broke BB: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/18655/steps/test/logs/stdio llvm-svn: 373599
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFEmitter.cpp')
-rw-r--r--llvm/lib/ObjectYAML/ELFEmitter.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp
index 3f3b27c5bfa..c85cf4c924f 100644
--- a/llvm/lib/ObjectYAML/ELFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -174,10 +174,6 @@ template <class ELFT> class ELFState {
void writeSectionContent(Elf_Shdr &SHeader,
const ELFYAML::HashSection &Section,
ContiguousBlobAccumulator &CBA);
- void writeSectionContent(Elf_Shdr &SHeader,
- const ELFYAML::AddrsigSection &Section,
- ContiguousBlobAccumulator &CBA);
-
ELFState(ELFYAML::Object &D, yaml::ErrorHandler EH);
public:
@@ -427,8 +423,6 @@ void ELFState<ELFT>::initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
writeSectionContent(SHeader, *S, CBA);
} else if (auto S = dyn_cast<ELFYAML::HashSection>(Sec)) {
writeSectionContent(SHeader, *S, CBA);
- } else if (auto S = dyn_cast<ELFYAML::AddrsigSection>(Sec)) {
- writeSectionContent(SHeader, *S, CBA);
} else {
llvm_unreachable("Unknown section type");
}
@@ -996,30 +990,6 @@ void ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader,
Section.Content->writeAsBinary(OS);
}
-template <class ELFT>
-void ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader,
- const ELFYAML::AddrsigSection &Section,
- ContiguousBlobAccumulator &CBA) {
- raw_ostream &OS =
- CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign);
-
- unsigned Link = 0;
- if (Section.Link.empty() && SN2I.lookup(".symtab", Link))
- SHeader.sh_link = Link;
-
- if (Section.Content) {
- SHeader.sh_size = writeContent(OS, Section.Content, None);
- return;
- }
-
- for (const ELFYAML::AddrsigSymbol &Sym : *Section.Symbols) {
- uint64_t Val =
- Sym.Name ? toSymbolIndex(*Sym.Name, Section.Name, /*IsDynamic=*/false)
- : (uint32_t)*Sym.Index;
- SHeader.sh_size += encodeULEB128(Val, OS);
- }
-}
-
template <class ELFT> void ELFState<ELFT>::buildSectionIndex() {
for (unsigned I = 0, E = Doc.Sections.size(); I != E; ++I) {
StringRef Name = Doc.Sections[I]->Name;
OpenPOWER on IntegriCloud