1 //===-- HexagonMCAsmInfo.cpp - Hexagon 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 HexagonMCAsmInfo properties. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #include "HexagonMCAsmInfo.h" 15 16 using namespace llvm; 17 18 // Pin the vtable to this file. anchor()19void HexagonMCAsmInfo::anchor() {} 20 HexagonMCAsmInfo(const Triple & TT)21HexagonMCAsmInfo::HexagonMCAsmInfo(const Triple &TT) { 22 Data16bitsDirective = "\t.half\t"; 23 Data32bitsDirective = "\t.word\t"; 24 Data64bitsDirective = nullptr; // .xword is only supported by V9. 25 ZeroDirective = "\t.skip\t"; 26 CommentString = "//"; 27 28 LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment; 29 InlineAsmStart = "# InlineAsm Start"; 30 InlineAsmEnd = "# InlineAsm End"; 31 ZeroDirective = "\t.space\t"; 32 AscizDirective = "\t.string\t"; 33 34 SupportsDebugInformation = true; 35 UsesELFSectionDirectiveForBSS = true; 36 ExceptionsType = ExceptionHandling::DwarfCFI; 37 } 38