1 //===-- HexagonMCAsmInfo.cpp - Hexagon asm properties ---------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains the declarations of the HexagonMCAsmInfo properties.
11 //===----------------------------------------------------------------------===//
13 #include "HexagonMCAsmInfo.h"
17 // Pin the vtable to this file.
18 void HexagonMCAsmInfo::anchor() {}
20 HexagonMCAsmInfo::HexagonMCAsmInfo(const Triple
&TT
) {
21 Data16bitsDirective
= "\t.half\t";
22 Data32bitsDirective
= "\t.word\t";
23 Data64bitsDirective
= nullptr; // .xword is only supported by V9.
25 SupportsDebugInformation
= true;
27 LCOMMDirectiveAlignmentType
= LCOMM::ByteAlignment
;
28 InlineAsmStart
= "# InlineAsm Start";
29 InlineAsmEnd
= "# InlineAsm End";
30 ZeroDirective
= "\t.space\t";
31 AscizDirective
= "\t.string\t";
34 UsesELFSectionDirectiveForBSS
= true;
35 ExceptionsType
= ExceptionHandling::DwarfCFI
;
36 UseLogicalShr
= false;