1 //===-- LoongArchTargetStreamer.h - LoongArch Target Streamer --*- C++ -*--===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHTARGETSTREAMER_H 10 #define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHTARGETSTREAMER_H 11 12 #include "LoongArch.h" 13 #include "llvm/MC/MCStreamer.h" 14 #include "llvm/MC/MCSubtargetInfo.h" 15 16 namespace llvm { 17 class LoongArchTargetStreamer : public MCTargetStreamer { 18 LoongArchABI::ABI TargetABI = LoongArchABI::ABI_Unknown; 19 20 public: 21 LoongArchTargetStreamer(MCStreamer &S); 22 void setTargetABI(LoongArchABI::ABI ABI); 23 LoongArchABI::ABI getTargetABI() const { return TargetABI; } 24 }; 25 26 } // end namespace llvm 27 #endif 28