Go to the documentation of this file.
9 #ifndef LLVM_MC_MCWASMOBJECTWRITER_H
10 #define LLVM_MC_MCWASMOBJECTWRITER_H
20 class raw_pwrite_stream;
23 const unsigned Is64Bit : 1;
24 const unsigned IsEmscripten : 1;
39 bool IsLocRel)
const = 0;
53 std::unique_ptr<MCObjectWriter>
55 raw_pwrite_stream &OS);
57 std::unique_ptr<MCObjectWriter>
59 raw_pwrite_stream &OS, raw_pwrite_stream &DwoOS);
bool isEmscripten() const
virtual unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup, const MCSectionWasm &FixupSection, bool IsLocRel) const =0
This is an optimization pass for GlobalISel generic memory operations.
std::unique_ptr< MCObjectWriter > createWasmObjectWriter(std::unique_ptr< MCWasmObjectTargetWriter > MOTW, raw_pwrite_stream &OS)
Construct a new Wasm writer instance.
Target - Wrapper for Target specific information.
virtual ~MCWasmObjectTargetWriter()
Base class for classes that define behaviour that is specific to both the target and the object forma...
This represents a section on wasm.
MCWasmObjectTargetWriter(bool Is64Bit_, bool IsEmscripten)
Triple::ObjectFormatType getFormat() const override
static bool classof(const MCObjectTargetWriter *W)
std::unique_ptr< MCObjectWriter > createWasmDwoObjectWriter(std::unique_ptr< MCWasmObjectTargetWriter > MOTW, raw_pwrite_stream &OS, raw_pwrite_stream &DwoOS)
This represents an "assembler immediate".
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...