mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
CodeGen: refactor DwarfException
DwarfException served as a base class for exception handling directive emission. However, this is also used by other exception models (e.g. Win64EH). Rename this class to EHStreamer and split it out of DwarfException.h. NFC. Use the opportunity to fix up some of the documentation comments to match current LLVM style. Also rename some functions to conform better with current LLVM coding style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -38,9 +38,8 @@
|
||||
using namespace llvm;
|
||||
|
||||
Win64Exception::Win64Exception(AsmPrinter *A)
|
||||
: DwarfException(A),
|
||||
shouldEmitPersonality(false), shouldEmitLSDA(false), shouldEmitMoves(false)
|
||||
{}
|
||||
: EHStreamer(A), shouldEmitPersonality(false), shouldEmitLSDA(false),
|
||||
shouldEmitMoves(false) {}
|
||||
|
||||
Win64Exception::~Win64Exception() {}
|
||||
|
||||
@ -108,7 +107,7 @@ void Win64Exception::endFunction(const MachineFunction *) {
|
||||
Asm->OutStreamer.EmitWin64EHHandlerData();
|
||||
Asm->OutStreamer.EmitValue(MCSymbolRefExpr::Create(Sym, Asm->OutContext),
|
||||
4);
|
||||
EmitExceptionTable();
|
||||
emitExceptionTable();
|
||||
Asm->OutStreamer.PopSection();
|
||||
}
|
||||
Asm->OutStreamer.EmitWin64EHEndProc();
|
||||
|
Reference in New Issue
Block a user