mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Centralize handling of the eh_begin and eh_end labels.
This removes a bit of duplicated code and more importantly, remembers the labels so that they don't need to be looked up by name. This in turn allows for any name to be used and avoids a crash if the name we wanted was already taken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,8 +58,6 @@ void ARMException::endModule() {
|
||||
void ARMException::beginFunction(const MachineFunction *MF) {
|
||||
if (Asm->MAI->getExceptionHandlingType() == ExceptionHandling::ARM)
|
||||
getTargetStreamer().emitFnStart();
|
||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_begin",
|
||||
Asm->getFunctionNumber()));
|
||||
// See if we need call frame info.
|
||||
AsmPrinter::CFIMoveType MoveType = Asm->needsCFIMoves();
|
||||
assert(MoveType != AsmPrinter::CFI_M_EH &&
|
||||
@@ -84,8 +82,6 @@ void ARMException::endFunction(const MachineFunction *) {
|
||||
MMI->getLandingPads().empty())
|
||||
ATS.emitCantUnwind();
|
||||
else {
|
||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
|
||||
Asm->getFunctionNumber()));
|
||||
if (!MMI->getLandingPads().empty()) {
|
||||
// Emit references to personality.
|
||||
if (const Function *Personality = MMI->getPersonality()) {
|
||||
|
||||
Reference in New Issue
Block a user