llvm.org GIT mirror llvm / 0de4a6b
Remove a temporary hack. Amusingly this survived a lot longer than the CFI transition. We don't even support non-cfi assemblers any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211498 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
1 changed file(s) with 0 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
6161 return;
6262
6363 // Emit references to all used personality functions
64 bool AtLeastOne = false;
6564 const std::vector &Personalities = MMI->getPersonalities();
6665 for (size_t i = 0, e = Personalities.size(); i != e; ++i) {
6766 if (!Personalities[i])
6867 continue;
6968 MCSymbol *Sym = Asm->getSymbol(Personalities[i]);
7069 TLOF.emitPersonalityValue(Asm->OutStreamer, Asm->TM, Sym);
71 AtLeastOne = true;
72 }
73
74 if (AtLeastOne && !TLOF.isFunctionEHFrameSymbolPrivate()) {
75 // This is a temporary hack to keep sections in the same order they
76 // were before. This lets us produce bit identical outputs while
77 // transitioning to CFI.
78 Asm->OutStreamer.SwitchSection(
79 const_cast(TLOF).getEHFrameSection());
8070 }
8171 }
8272