diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-04 18:02:01 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-04 18:02:01 +0000 |
commit | 8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d (patch) | |
tree | 7327f2fc55e2e63800b1d5070ad1fc05516ac171 /llvm/lib/MC/MCStreamer.cpp | |
parent | ecc59396d1344f642a2ae5f6fc9e7cb3fb2fab9b (diff) | |
download | llvm-8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d.zip llvm-8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d.tar.gz llvm-8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d.tar.bz2 |
Implement unique sections with an unique ID.
This allows the compiler/assembly programmer to switch back to a
section. This in turn fixes the bootstrap failure on powerpc (tested
on gcc110) without changing the ppc codegen at all.
I will try to cleanup the various getELFSection overloads in a followup patch.
Just using a default argument now would lead to ambiguities.
llvm-svn: 234099
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 3db2345..27d0355 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -669,12 +669,6 @@ void MCStreamer::SwitchSection(const MCSection *Section, MCSectionSubPair curSection = SectionStack.back().first; SectionStack.back().second = curSection; if (MCSectionSubPair(Section, Subsection) != curSection) { - const MCSection *CurSec = curSection.first; - if (CurSec && CurSec->isUnique()) { - MCSymbol *Sym = curSection.first->getEndSymbol(Context); - if (!Sym->isInSection()) - EmitLabel(Sym); - } SectionStack.back().first = MCSectionSubPair(Section, Subsection); assert(!Section->hasEnded() && "Section already ended"); ChangeSection(Section, Subsection); |