LLVM  10.0.0svn
LanaiMCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- LanaiMCAsmInfo.cpp - Lanai 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 LanaiMCAsmInfo properties.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "LanaiMCAsmInfo.h"
14 
15 #include "llvm/ADT/Triple.h"
16 
17 using namespace llvm;
18 
19 void LanaiMCAsmInfo::anchor() {}
20 
21 LanaiMCAsmInfo::LanaiMCAsmInfo(const Triple & /*TheTriple*/) {
22  IsLittleEndian = false;
23  PrivateGlobalPrefix = ".L";
24  WeakRefDirective = "\t.weak\t";
26 
27  // Lanai assembly requires ".section" before ".bss"
29 
30  // Use the integrated assembler instead of system one.
32 
33  // Use '!' as comment string to correspond with old toolchain.
34  CommentString = "!";
35 
36  // Target supports emission of debugging information.
38 
39  // Set the instruction alignment. Currently used only for address adjustment
40  // in dwarf generation.
41  MinInstAlignment = 4;
42 }
bool UseIntegratedAssembler
Should we use the integrated assembler? The integrated assembler should be enabled by default (by the...
Definition: MCAsmInfo.h:375
This class represents lattice values for constants.
Definition: AllocatorList.h:23
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:70
StringRef CommentString
This indicates the comment character used by the assembler.
Definition: MCAsmInfo.h:114
bool UsesELFSectionDirectiveForBSS
This is true if this target uses ELF '.section' directive before the '.bss' one.
Definition: MCAsmInfo.h:225
LanaiMCAsmInfo(const Triple &TheTriple)
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:336
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol...
Definition: MCAsmInfo.h:306
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:43
unsigned MinInstAlignment
Every possible instruction length is a multiple of this value.
Definition: MCAsmInfo.h:102
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition: MCAsmInfo.h:339
DWARF-like instruction based exceptions.
StringRef PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ...
Definition: MCAsmInfo.h:128