xref: /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCAsmInfo.cpp (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1 //===-- CSKYMCAsmInfo.cpp - CSKY Asm properties ---------------------------===//
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 contains the declarations of the CSKYMCAsmInfo properties.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "CSKYMCAsmInfo.h"
14 #include "llvm/BinaryFormat/Dwarf.h"
15 #include "llvm/MC/MCStreamer.h"
16 
17 using namespace llvm;
18 
anchor()19 void CSKYMCAsmInfo::anchor() {}
20 
CSKYMCAsmInfo(const Triple & TargetTriple)21 CSKYMCAsmInfo::CSKYMCAsmInfo(const Triple &TargetTriple) {
22   AlignmentIsInBytes = false;
23   SupportsDebugInformation = true;
24   CommentString = "#";
25 
26   // Uses '.section' before '.bss' directive
27   UsesELFSectionDirectiveForBSS = true;
28 
29   ExceptionsType = ExceptionHandling::DwarfCFI;
30 }
31