LLVM  8.0.1
WasmException.h
Go to the documentation of this file.
1 //===-- WasmException.h - Wasm Exception Framework -------------*- C++ -*--===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains support for writing WebAssembly exception info into asm
11 // files.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_WASMEXCEPTION_H
16 #define LLVM_LIB_CODEGEN_ASMPRINTER_WASMEXCEPTION_H
17 
18 #include "EHStreamer.h"
20 
21 namespace llvm {
22 
24 public:
26 
27  void endModule() override;
28  void beginFunction(const MachineFunction *MF) override {}
29  virtual void markFunctionEnd() override;
30  void endFunction(const MachineFunction *MF) override;
31 
32 protected:
33  // Compute the call site table for wasm EH.
34  void computeCallSiteTable(
36  const SmallVectorImpl<const LandingPadInfo *> &LandingPads,
37  const SmallVectorImpl<unsigned> &FirstActions) override;
38 };
39 
40 } // End of namespace llvm
41 
42 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
void beginFunction(const MachineFunction *MF) override
Gather pre-function debug information.
Definition: WasmException.h:28
Emits exception handling directives.
Definition: EHStreamer.h:31
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APFloat.h:42
This class is intended to be used as a driving class for all asm writers.
Definition: AsmPrinter.h:79
WasmException(AsmPrinter *A)
Definition: WasmException.h:25
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
Definition: Compiler.h:108