diff options
| author | Reid Kleckner <reid@kleckner.net> | 2015-01-14 22:47:54 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2015-01-14 22:47:54 +0000 |
| commit | e80a0a7572757c0925de541a660fc2e242e45417 (patch) | |
| tree | 6477b9fd31cf302b6b9c8261e3298edce5fd053f /llvm/lib/CodeGen/AsmPrinter/ARMException.cpp | |
| parent | 8d3ef611cef5780f62480eb4d84915a635374f31 (diff) | |
| download | bcm5719-llvm-e80a0a7572757c0925de541a660fc2e242e45417.tar.gz bcm5719-llvm-e80a0a7572757c0925de541a660fc2e242e45417.zip | |
Use MMI->getPersonality() instead of MMI->getPersonalities()[MMI->getPersonalityIndex()]
Also nuke the comment about supporting multiple personalities in a
single function, aka PR1414. That's just crazy.
llvm-svn: 226052
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/ARMException.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/ARMException.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp index 66c6c633540..6fe75ad82d2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp @@ -88,8 +88,7 @@ void ARMException::endFunction(const MachineFunction *) { Asm->getFunctionNumber())); if (!MMI->getLandingPads().empty()) { // Emit references to personality. - if (const Function * Personality = - MMI->getPersonalities()[MMI->getPersonalityIndex()]) { + if (const Function *Personality = MMI->getPersonality()) { MCSymbol *PerSym = Asm->getSymbol(Personality); Asm->OutStreamer.EmitSymbolAttribute(PerSym, MCSA_Global); ATS.emitPersonality(PerSym); |

