These directives allow the 'C' (compressed) extension to be enabled/disabled within a single file. Differential Revision: https://reviews.llvm.org/D45864 Patch by Kito Cheng llvm-svn: 332107
28 lines
794 B
C++
28 lines
794 B
C++
//===-- RISCVELFStreamer.h - RISCV ELF Target Streamer ---------*- C++ -*--===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_RISCV_RISCVELFSTREAMER_H
|
|
#define LLVM_LIB_TARGET_RISCV_RISCVELFSTREAMER_H
|
|
|
|
#include "RISCVTargetStreamer.h"
|
|
#include "llvm/MC/MCELFStreamer.h"
|
|
|
|
namespace llvm {
|
|
|
|
class RISCVTargetELFStreamer : public RISCVTargetStreamer {
|
|
public:
|
|
MCELFStreamer &getStreamer();
|
|
RISCVTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI);
|
|
|
|
virtual void emitDirectiveOptionRVC();
|
|
virtual void emitDirectiveOptionNoRVC();
|
|
};
|
|
}
|
|
#endif
|