summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-23 14:22:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-23 14:22:55 +0000
commit73f364ef5f6aec0f6fee8b13d4d897f8d57cd14a (patch)
tree4c205ad1a8d98191f877459076c31c1b2a7c26ad /llvm/lib/CodeGen/AsmPrinter
parent8ca988f31afb8f9b779963e8fabfbe336b865d2c (diff)
downloadbcm5719-llvm-73f364ef5f6aec0f6fee8b13d4d897f8d57cd14a.tar.gz
bcm5719-llvm-73f364ef5f6aec0f6fee8b13d4d897f8d57cd14a.zip
Remove a temporary hack.
Amusingly this survived a lot longer than the CFI transition. We don't even support non-cfi assemblers any more. llvm-svn: 211498
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index e2d95272c2c..79cce51ee4d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -62,22 +62,12 @@ void DwarfCFIException::endModule() {
return;
// Emit references to all used personality functions
- bool AtLeastOne = false;
const std::vector<const Function*> &Personalities = MMI->getPersonalities();
for (size_t i = 0, e = Personalities.size(); i != e; ++i) {
if (!Personalities[i])
continue;
MCSymbol *Sym = Asm->getSymbol(Personalities[i]);
TLOF.emitPersonalityValue(Asm->OutStreamer, Asm->TM, Sym);
- AtLeastOne = true;
- }
-
- if (AtLeastOne && !TLOF.isFunctionEHFrameSymbolPrivate()) {
- // This is a temporary hack to keep sections in the same order they
- // were before. This lets us produce bit identical outputs while
- // transitioning to CFI.
- Asm->OutStreamer.SwitchSection(
- const_cast<TargetLoweringObjectFile&>(TLOF).getEHFrameSection());
}
}
OpenPOWER on IntegriCloud