blob: 491a70847577e8857a47baed093744555dc8ba84 [file] [log] [blame]
Jacques Pienaarfcef3e42016-03-28 13:09:54 +00001//===-- LanaiMCAsmInfo.cpp - Lanai asm properties -----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the declarations of the LanaiMCAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "LanaiMCAsmInfo.h"
15
16#include "llvm/ADT/Triple.h"
17
18using namespace llvm;
19
20void LanaiMCAsmInfo::anchor() {}
21
22LanaiMCAsmInfo::LanaiMCAsmInfo(const Triple &TheTriple) {
23 IsLittleEndian = false;
24 PrivateGlobalPrefix = ".L";
25 WeakRefDirective = "\t.weak\t";
26 ExceptionsType = ExceptionHandling::DwarfCFI;
27
28 // Lanai assembly requires ".section" before ".bss"
29 UsesELFSectionDirectiveForBSS = true;
30
31 // Use the integrated assembler instead of system one.
32 UseIntegratedAssembler = true;
33
34 // Use '!' as comment string to correspond with old toolchain.
35 CommentString = "!";
36
37 // Target supports emission of debugging information.
38 SupportsDebugInformation = true;
39
40 // Set the instruction alignment. Currently used only for address adjustment
41 // in dwarf generation.
42 MinInstAlignment = 4;
43}