summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/WinException.h
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-09-28 23:56:30 +0000
committerReid Kleckner <rnk@google.com>2015-09-28 23:56:30 +0000
commitc71d6275ca727a6d534dd5ee4602e315702e8054 (patch)
tree7e0ea578cfcd1ce4cd7fd0504c96746204d87ca1 /llvm/lib/CodeGen/AsmPrinter/WinException.h
parent525c013921e98a89ebcc0e3ee57300cd6d1a2963 (diff)
downloadbcm5719-llvm-c71d6275ca727a6d534dd5ee4602e315702e8054.tar.gz
bcm5719-llvm-c71d6275ca727a6d534dd5ee4602e315702e8054.zip
[WinEH] Fix ip2state table emission with funclets
Previously we were hijacking the old LandingPadInfo data structures to communicate our state numbers. Now we don't need that anymore. llvm-svn: 248763
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinException.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.h b/llvm/lib/CodeGen/AsmPrinter/WinException.h
index ac06db2a2fd..37d2ab6ae4e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinException.h
+++ b/llvm/lib/CodeGen/AsmPrinter/WinException.h
@@ -47,7 +47,9 @@ class LLVM_LIBRARY_VISIBILITY WinException : public EHStreamer {
/// tables.
void emitExceptHandlerTable(const MachineFunction *MF);
- void extendIP2StateTable(const MachineFunction *MF, WinEHFuncInfo &FuncInfo);
+ void computeIP2StateTable(
+ const MachineFunction *MF, WinEHFuncInfo &FuncInfo,
+ SmallVectorImpl<std::pair<const MCExpr *, int>> &IPToStateTable);
/// Emits the label used with llvm.x86.seh.recoverfp, which is used by
/// outlined funclets.
@@ -56,6 +58,7 @@ class LLVM_LIBRARY_VISIBILITY WinException : public EHStreamer {
const MCExpr *create32bitRef(const MCSymbol *Value);
const MCExpr *create32bitRef(const Value *V);
+ const MCExpr *getLabelPlusOne(MCSymbol *Label);
public:
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud