summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2011-05-27 23:47:32 +0000
committerCharles Davis <cdavis@mines.edu>2011-05-27 23:47:32 +0000
commit91ed799eb4b0851f1a19251f153fb4fc09395bcb (patch)
treeae31fa84d933e4c5726d3866e3ce32501b133904 /llvm/lib/CodeGen/AsmPrinter/DwarfException.h
parent787dfadc7c82e60a00603e9db2d602cecda07e30 (diff)
downloadbcm5719-llvm-91ed799eb4b0851f1a19251f153fb4fc09395bcb.tar.gz
bcm5719-llvm-91ed799eb4b0851f1a19251f153fb4fc09395bcb.zip
Stub out support for Win64-style exceptions. Note that this is merely using
the Win64 EH mechanism to implement GCC-style exceptions. LLVM supports hardly anything else at this point! llvm-svn: 132234
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
index 42a3658fff0..b5f86ab1b95 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h
@@ -205,6 +205,38 @@ public:
virtual void EndFunction();
};
+class Win64Exception : public DwarfException {
+ /// shouldEmitPersonality - Per-function flag to indicate if personality
+ /// info should be emitted.
+ bool shouldEmitPersonality;
+
+ /// shouldEmitLSDA - Per-function flag to indicate if the LSDA
+ /// should be emitted.
+ bool shouldEmitLSDA;
+
+ /// shouldEmitMoves - Per-function flag to indicate if frame moves info
+ /// should be emitted.
+ bool shouldEmitMoves;
+
+public:
+ //===--------------------------------------------------------------------===//
+ // Main entry points.
+ //
+ Win64Exception(AsmPrinter *A);
+ virtual ~Win64Exception();
+
+ /// 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
OpenPOWER on IntegriCloud