xref: /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/XtensaMCAsmInfo.cpp (revision 02e9120893770924227138ba49df1edb3896112a)
1 //===-- XtensaMCAsmInfo.cpp - Xtensa Asm Properties -----------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6 // See https://llvm.org/LICENSE.txt for license information.
7 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //
9 //===----------------------------------------------------------------------===//
10 //
11 // This file contains the declarations of the XtensaMCAsmInfo properties.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #include "XtensaMCAsmInfo.h"
16 #include "llvm/TargetParser/Triple.h"
17 
18 using namespace llvm;
19 
20 XtensaMCAsmInfo::XtensaMCAsmInfo(const Triple &TT) {
21   CodePointerSize = 4;
22   CalleeSaveStackSlotSize = 4;
23   PrivateGlobalPrefix = ".L";
24   CommentString = "#";
25   ZeroDirective = "\t.space\t";
26   Data64bitsDirective = "\t.quad\t";
27   GlobalDirective = "\t.global\t";
28   UsesELFSectionDirectiveForBSS = true;
29   SupportsDebugInformation = true;
30   ExceptionsType = ExceptionHandling::DwarfCFI;
31   AlignmentIsInBytes = false;
32 }
33