LLVM 24.0.0git
XCoreMCAsmInfo.cpp
Go to the documentation of this file.
1//===-- XCoreMCAsmInfo.cpp - XCore 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#include "XCoreMCAsmInfo.h"
10using namespace llvm;
11
13 : MCAsmInfoELF(TT, Options) {
15 Data16bitsDirective = "\t.short\t";
16 Data32bitsDirective = "\t.long\t";
17 Data64bitsDirective = nullptr;
18 ZeroDirective = "\t.space\t";
19 CommentString = "#";
20
21 AscizDirective = ".asciiz";
22
26
27 // Debug
28 DwarfRegNumForCFI = true;
29
31
32 // .bss is supported without .section.
33 SectionDirectives.insert(".bss");
34}
static LVOptions Options
Definition LVOptions.cpp:25
MCAsmInfoELF(const Triple &TT, const MCTargetOptions &Options)
const char * Data16bitsDirective
Definition MCAsmInfo.h:262
MCSymbolAttr ProtectedVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility.
Definition MCAsmInfo.h:366
const char * Data64bitsDirective
Definition MCAsmInfo.h:264
const char * Data32bitsDirective
Definition MCAsmInfo.h:263
bool UseIntegratedAssembler
Should we use the integrated assembler?
Definition MCAsmInfo.h:442
SmallDenseSet< StringRef, 8 > SectionDirectives
Sections whose name also is supported as a directive without an explicit ".section" directive.
Definition MCAsmInfo.h:475
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition MCAsmInfo.h:372
MCSymbolAttr HiddenDeclarationVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare an undefined symbol as having hidden visibili...
Definition MCAsmInfo.h:362
const char * ZeroDirective
This should be set to the directive used to get some number of zero (and non-zero if supported by the...
Definition MCAsmInfo.h:240
const char * AscizDirective
If not null, this allows for special handling of zero terminated strings on this target.
Definition MCAsmInfo.h:250
bool DwarfRegNumForCFI
True if dwarf register numbers are printed instead of symbolic register names in ....
Definition MCAsmInfo.h:408
MCSymbolAttr HiddenVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having hidden visibility.
Definition MCAsmInfo.h:354
StringRef CommentString
This indicates the comment string used by the assembler.
Definition MCAsmInfo.h:144
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
XCoreMCAsmInfo(const Triple &TT, const MCTargetOptions &Options)
This is an optimization pass for GlobalISel generic memory operations.
@ MCSA_Invalid
Not a valid directive.