LLVM  7.0.0
Nios2MCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- Nios2MCAsmInfo.cpp - Nios2 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 Nios2MCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "Nios2MCAsmInfo.h"
15 
16 #include "llvm/ADT/Triple.h"
17 
18 using namespace llvm;
19 
20 void Nios2MCAsmInfo::anchor() {}
21 
23  if ((TheTriple.getArch() == Triple::nios2))
24  IsLittleEndian = true; // the default of IsLittleEndian is true
25 
26  AlignmentIsInBytes = false;
27  Data16bitsDirective = "\t.2byte\t";
28  Data32bitsDirective = "\t.4byte\t";
29  Data64bitsDirective = "\t.8byte\t";
30  PrivateLabelPrefix = ".LC";
31  CommentString = "#";
32  ZeroDirective = "\t.space\t";
33  GPRel32Directive = "\t.gpword\t";
34  GPRel64Directive = "\t.gpdword\t";
35  WeakRefDirective = "\t.weak\t";
36  GlobalDirective = "\t.global\t";
37  AscizDirective = "\t.string\t";
39 
42  DwarfRegNumForCFI = true;
44 }
StringRef PrivateLabelPrefix
This prefix is used for labels for basic blocks.
Definition: MCAsmInfo.h:132
bool DwarfRegNumForCFI
True if dwarf register numbers are printed instead of symbolic register names in .cfi_* directives.
Definition: MCAsmInfo.h:350
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
const char * Data64bitsDirective
Definition: MCAsmInfo.h:193
const char * ZeroDirective
This should be set to the directive used to get some number of zero bytes emitted to the current sect...
Definition: MCAsmInfo.h:174
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:70
const char * GlobalDirective
This is the directive used to declare a global entity.
Definition: MCAsmInfo.h:241
bool AlignmentIsInBytes
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number ...
Definition: MCAsmInfo.h:231
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
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
Definition: Triple.h:285
const char * AscizDirective
If not null, this allows for special handling of zero terminated strings on this target.
Definition: MCAsmInfo.h:184
const char * GPRel64Directive
If non-null, a directive that is used to emit a word which should be relocated as a 64-bit GP-relativ...
Definition: MCAsmInfo.h:198
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
const char * Data16bitsDirective
Definition: MCAsmInfo.h:191
bool UseAssignmentForEHBegin
Definition: MCAsmInfo.h:120
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
const char * Data32bitsDirective
Definition: MCAsmInfo.h:192
const char * GPRel32Directive
If non-null, a directive that is used to emit a word which should be relocated as a 32-bit GP-relativ...
Definition: MCAsmInfo.h:203
Nios2MCAsmInfo(const Triple &TheTriple)
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition: MCAsmInfo.h:335
No exception support.