summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-09-29 20:12:33 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-09-29 20:12:33 +0000
commita80c1512861aa78f75a89b92275aaf2e92ff7fb9 (patch)
treeb5d4c3efc67ff022eb8a71ad379dc01a1447a46f /llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
parent81f005617e42e64b553a5ded37f1afac9b3fb4cc (diff)
downloadbcm5719-llvm-a80c1512861aa78f75a89b92275aaf2e92ff7fb9.tar.gz
bcm5719-llvm-a80c1512861aa78f75a89b92275aaf2e92ff7fb9.zip
[WinEH] Teach AsmPrinter about funclets
Summary: Funclets have been turned into functions by the time they hit the object file. Make sure that they have decent names for the symbol table and CFI directives explaining how to reason about their prologues. Differential Revision: http://reviews.llvm.org/D13261 llvm-svn: 248824
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
index f1efe9d835e..e59961f8576 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
@@ -19,6 +19,7 @@
namespace llvm {
+class MachineBasicBlock;
class MachineFunction;
class MachineInstr;
class MCSymbol;
@@ -50,6 +51,11 @@ public:
/// beginFunction at all.
virtual void endFunction(const MachineFunction *MF) = 0;
+ /// \brief Emit target-specific EH funclet machinery.
+ virtual void beginFunclet(const MachineBasicBlock &MBB,
+ MCSymbol *Sym = nullptr) {}
+ virtual void endFunclet() {}
+
/// \brief Process beginning of an instruction.
virtual void beginInstruction(const MachineInstr *MI) = 0;
OpenPOWER on IntegriCloud