diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2011-03-05 18:43:15 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2011-03-05 18:43:15 +0000 |
commit | a7ec2dcefd954599db514fccaa2a3c21c110233b (patch) | |
tree | 2282e14fff7c9e8b0afd3c84abf2ec37777b9ff5 /llvm/lib/CodeGen/AsmPrinter/DwarfException.h | |
parent | 65cff414b660ea88a2e07f68f5b749538365d2f9 (diff) | |
download | bcm5719-llvm-a7ec2dcefd954599db514fccaa2a3c21c110233b.tar.gz bcm5719-llvm-a7ec2dcefd954599db514fccaa2a3c21c110233b.zip |
Some first rudimentary support for ARM EHABI: print exception table in "text mode".
llvm-svn: 127099
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h index a172e53f8ac..06b1de62fbd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h @@ -237,6 +237,38 @@ public: virtual void EndFunction(); }; + +class ARMException : 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. + // + ARMException(AsmPrinter *A); + virtual ~ARMException(); + + /// 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(); +}; + } // End of namespace llvm #endif |