HexagonMCAsmInfo.cpp revision 354362524a72b3fa43a6c09380b7ae3b2380cbba
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 16using namespace llvm; 17 18// Pin the vtable to this file. 19void HexagonMCAsmInfo::anchor() {} 20 21HexagonMCAsmInfo::HexagonMCAsmInfo(StringRef TT) { 22 Data16bitsDirective = "\t.half\t"; 23 Data32bitsDirective = "\t.word\t"; 24 Data64bitsDirective = 0; // .xword is only supported by V9. 25 ZeroDirective = "\t.skip\t"; 26 CommentString = "//"; 27 HasLEB128 = true; 28 29 PrivateGlobalPrefix = ".L"; 30 LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment; 31 InlineAsmStart = "# InlineAsm Start"; 32 InlineAsmEnd = "# InlineAsm End"; 33 ZeroDirective = "\t.space\t"; 34 AscizDirective = "\t.string\t"; 35 36 SupportsDebugInformation = true; 37 UsesELFSectionDirectiveForBSS = true; 38 ExceptionsType = ExceptionHandling::DwarfCFI; 39} 40