From b46ef57de5a2a8492fedd710bb48afee6d1f0522 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 14 Jan 2011 21:57:53 +0000 Subject: Add CFI directives-based frame information emission. Not hooked yet. llvm-svn: 123474 --- llvm/lib/CodeGen/AsmPrinter/DwarfException.h | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.h') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h index adfbc8595bf..a172e53f8ac 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h @@ -139,6 +139,37 @@ public: virtual void EndFunction(); }; +class DwarfCFIException : public DwarfException { + /// shouldEmitTable - Per-function flag to indicate if EH tables should + /// be emitted. + bool shouldEmitTable; + + /// shouldEmitMoves - Per-function flag to indicate if frame moves info + /// should be emitted. + bool shouldEmitMoves; + + /// shouldEmitTableModule - Per-module flag to indicate if EH tables + /// should be emitted. + bool shouldEmitTableModule; +public: + //===--------------------------------------------------------------------===// + // Main entry points. + // + DwarfCFIException(AsmPrinter *A); + virtual ~DwarfCFIException(); + + /// EndModule - Emit all exception information that should come after the + /// content. + virtual void EndModule(); + + /// BeginFunction - Gather pre-function exception information. Assumes being + /// emitted immediately after the function entry point. + virtual void BeginFunction(const MachineFunction *MF); + + /// EndFunction - Gather and emit post-function exception information. + virtual void EndFunction(); +}; + class DwarfTableException : public DwarfException { /// shouldEmitTable - Per-function flag to indicate if EH tables should /// be emitted. -- cgit v1.2.3