blob: c619c36164cfc2b308f5219b9bf02234f9f7141d [file] [log] [blame]
Jia Liub22310f2012-02-18 12:03:15 +00001//===-- HexagonMCAsmInfo.cpp - Hexagon asm properties ---------------------===//
Tony Linthicum1213a7a2011-12-12 21:14:40 +00002//
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 HexagonMCAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "HexagonMCAsmInfo.h"
15
16using namespace llvm;
17
Juergen Ributzkad12ccbd2013-11-19 00:57:56 +000018// Pin the vtable to this file.
19void HexagonMCAsmInfo::anchor() {}
20
Daniel Sanders50f17232015-09-15 16:17:27 +000021HexagonMCAsmInfo::HexagonMCAsmInfo(const Triple &TT) {
Tony Linthicum1213a7a2011-12-12 21:14:40 +000022 Data16bitsDirective = "\t.half\t";
23 Data32bitsDirective = "\t.word\t";
Craig Topper062a2ba2014-04-25 05:30:21 +000024 Data64bitsDirective = nullptr; // .xword is only supported by V9.
Tony Linthicum1213a7a2011-12-12 21:14:40 +000025 CommentString = "//";
Tony Linthicum1213a7a2011-12-12 21:14:40 +000026
Benjamin Kramer68b9f052012-09-07 21:08:01 +000027 LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
Tony Linthicum1213a7a2011-12-12 21:14:40 +000028 InlineAsmStart = "# InlineAsm Start";
29 InlineAsmEnd = "# InlineAsm End";
30 ZeroDirective = "\t.space\t";
31 AscizDirective = "\t.string\t";
Tony Linthicum1213a7a2011-12-12 21:14:40 +000032
Jyotsna Verma27c06f32013-03-28 19:34:49 +000033 SupportsDebugInformation = true;
Krzysztof Parzyszek3e282292016-04-25 21:05:19 +000034 MinInstAlignment = 4;
Tony Linthicum1213a7a2011-12-12 21:14:40 +000035 UsesELFSectionDirectiveForBSS = true;
36 ExceptionsType = ExceptionHandling::DwarfCFI;
37}