LLVM  8.0.1
LanaiMCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- 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 
18 using namespace llvm;
19 
20 void LanaiMCAsmInfo::anchor() {}
21 
22 LanaiMCAsmInfo::LanaiMCAsmInfo(const Triple & /*TheTriple*/) {
23  IsLittleEndian = false;
24  PrivateGlobalPrefix = ".L";
25  WeakRefDirective = "\t.weak\t";
27 
28  // Lanai assembly requires ".section" before ".bss"
30 
31  // Use the integrated assembler instead of system one.
33 
34  // Use '!' as comment string to correspond with old toolchain.
35  CommentString = "!";
36 
37  // Target supports emission of debugging information.
39 
40  // Set the instruction alignment. Currently used only for address adjustment
41  // in dwarf generation.
42  MinInstAlignment = 4;
43 }
bool UseIntegratedAssembler
Should we use the integrated assembler? The integrated assembler should be enabled by default (by the...
Definition: MCAsmInfo.h:371
This class represents lattice values for constants.
Definition: AllocatorList.h:24
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:221
LanaiMCAsmInfo(const Triple &TheTriple)
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:332
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol...
Definition: MCAsmInfo.h:302
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
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:335
No exception support.
StringRef PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ...
Definition: MCAsmInfo.h:128