10b57cec5SDimitry Andric //===-- LanaiMCAsmInfo.cpp - Lanai asm properties -----------------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 90b57cec5SDimitry Andric // This file contains the declarations of the LanaiMCAsmInfo properties. 100b57cec5SDimitry Andric // 110b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric #include "LanaiMCAsmInfo.h" 140b57cec5SDimitry Andric 15*06c3fb27SDimitry Andric #include "llvm/TargetParser/Triple.h" 160b57cec5SDimitry Andric 170b57cec5SDimitry Andric using namespace llvm; 180b57cec5SDimitry Andric anchor()190b57cec5SDimitry Andricvoid LanaiMCAsmInfo::anchor() {} 200b57cec5SDimitry Andric LanaiMCAsmInfo(const Triple &,const MCTargetOptions & Options)21480093f4SDimitry AndricLanaiMCAsmInfo::LanaiMCAsmInfo(const Triple & /*TheTriple*/, 22480093f4SDimitry Andric const MCTargetOptions &Options) { 230b57cec5SDimitry Andric IsLittleEndian = false; 240b57cec5SDimitry Andric PrivateGlobalPrefix = ".L"; 250b57cec5SDimitry Andric WeakRefDirective = "\t.weak\t"; 260b57cec5SDimitry Andric ExceptionsType = ExceptionHandling::DwarfCFI; 270b57cec5SDimitry Andric 280b57cec5SDimitry Andric // Lanai assembly requires ".section" before ".bss" 290b57cec5SDimitry Andric UsesELFSectionDirectiveForBSS = true; 300b57cec5SDimitry Andric 310b57cec5SDimitry Andric // Use '!' as comment string to correspond with old toolchain. 320b57cec5SDimitry Andric CommentString = "!"; 330b57cec5SDimitry Andric 340b57cec5SDimitry Andric // Target supports emission of debugging information. 350b57cec5SDimitry Andric SupportsDebugInformation = true; 360b57cec5SDimitry Andric 370b57cec5SDimitry Andric // Set the instruction alignment. Currently used only for address adjustment 380b57cec5SDimitry Andric // in dwarf generation. 390b57cec5SDimitry Andric MinInstAlignment = 4; 400b57cec5SDimitry Andric } 41