#include "LoongArchELFStreamer.h"
#include "LoongArchAsmBackend.h"
#include "LoongArchBaseInfo.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCELFObjectWriter.h"
usingnamespacellvm;
LoongArchTargetELFStreamer::LoongArchTargetELFStreamer(
MCStreamer &S, const MCSubtargetInfo &STI)
: … { … }
MCELFStreamer &LoongArchTargetELFStreamer::getStreamer() { … }
void LoongArchTargetELFStreamer::finish() { … }
namespace {
class LoongArchELFStreamer : public MCELFStreamer { … };
}
namespace llvm {
MCELFStreamer *createLoongArchELFStreamer(MCContext &C,
std::unique_ptr<MCAsmBackend> MAB,
std::unique_ptr<MCObjectWriter> MOW,
std::unique_ptr<MCCodeEmitter> MCE) { … }
}