xref: /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchTargetStreamer.cpp (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 //===-- LoongArchTargetStreamer.cpp - LoongArch Target Streamer Methods ---===//
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 // This file provides LoongArch specific target streamer methods.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "LoongArchTargetStreamer.h"
14 
15 using namespace llvm;
16 
17 LoongArchTargetStreamer::LoongArchTargetStreamer(MCStreamer &S)
18     : MCTargetStreamer(S) {}
19 
20 void LoongArchTargetStreamer::setTargetABI(LoongArchABI::ABI ABI) {
21   assert(ABI != LoongArchABI::ABI_Unknown &&
22          "Improperly initialized target ABI");
23   TargetABI = ABI;
24 }
25