mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Print jump tables before exception tables.
In the case where just tables are part of the function section, this produces more readable assembly by avoiding switching to the eh section and back to .text. This would also break with non unique section names, as trying to switch to a unique section actually creates a new one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -36,8 +36,7 @@
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
ARMException::ARMException(AsmPrinter *A)
|
||||
: EHStreamer(A), shouldEmitCFI(false) {}
|
||||
ARMException::ARMException(AsmPrinter *A) : DwarfCFIExceptionBase(A) {}
|
||||
|
||||
ARMException::~ARMException() {}
|
||||
|
||||
@ -70,13 +69,7 @@ void ARMException::beginFunction(const MachineFunction *MF) {
|
||||
|
||||
/// endFunction - Gather and emit post-function exception information.
|
||||
///
|
||||
void ARMException::endFunction(const MachineFunction *) {
|
||||
if (shouldEmitCFI)
|
||||
Asm->OutStreamer.EmitCFIEndProc();
|
||||
|
||||
// Map all labels and get rid of any dead landing pads.
|
||||
MMI->TidyLandingPads();
|
||||
|
||||
void ARMException::endFunction(const MachineFunction *MF) {
|
||||
ARMTargetStreamer &ATS = getTargetStreamer();
|
||||
if (!Asm->MF->getFunction()->needsUnwindTableEntry() &&
|
||||
MMI->getLandingPads().empty())
|
||||
|
Reference in New Issue
Block a user