1303231Sdim//===-- LanaiMCAsmInfo.cpp - Lanai asm properties -----------------------===//
2303231Sdim//
3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4353358Sdim// See https://llvm.org/LICENSE.txt for license information.
5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6303231Sdim//
7303231Sdim//===----------------------------------------------------------------------===//
8303231Sdim//
9303231Sdim// This file contains the declarations of the LanaiMCAsmInfo properties.
10303231Sdim//
11303231Sdim//===----------------------------------------------------------------------===//
12303231Sdim
13303231Sdim#include "LanaiMCAsmInfo.h"
14303231Sdim
15303231Sdim#include "llvm/ADT/Triple.h"
16303231Sdim
17303231Sdimusing namespace llvm;
18303231Sdim
19303231Sdimvoid LanaiMCAsmInfo::anchor() {}
20303231Sdim
21360784SdimLanaiMCAsmInfo::LanaiMCAsmInfo(const Triple & /*TheTriple*/,
22360784Sdim                               const MCTargetOptions &Options) {
23303231Sdim  IsLittleEndian = false;
24303231Sdim  PrivateGlobalPrefix = ".L";
25303231Sdim  WeakRefDirective = "\t.weak\t";
26303231Sdim  ExceptionsType = ExceptionHandling::DwarfCFI;
27303231Sdim
28303231Sdim  // Lanai assembly requires ".section" before ".bss"
29303231Sdim  UsesELFSectionDirectiveForBSS = true;
30303231Sdim
31303231Sdim  // Use the integrated assembler instead of system one.
32303231Sdim  UseIntegratedAssembler = true;
33303231Sdim
34303231Sdim  // Use '!' as comment string to correspond with old toolchain.
35303231Sdim  CommentString = "!";
36303231Sdim
37303231Sdim  // Target supports emission of debugging information.
38303231Sdim  SupportsDebugInformation = true;
39303231Sdim
40303231Sdim  // Set the instruction alignment. Currently used only for address adjustment
41303231Sdim  // in dwarf generation.
42303231Sdim  MinInstAlignment = 4;
43303231Sdim}
44