LLVM API Documentation

HexagonMCAsmInfo.cpp
Go to the documentation of this file.
00001 //===-- HexagonMCAsmInfo.cpp - Hexagon asm properties ---------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file contains the declarations of the HexagonMCAsmInfo properties.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "HexagonMCAsmInfo.h"
00015 
00016 using namespace llvm;
00017 
00018 // Pin the vtable to this file.
00019 void HexagonMCAsmInfo::anchor() {}
00020 
00021 HexagonMCAsmInfo::HexagonMCAsmInfo(StringRef TT) {
00022   Data16bitsDirective = "\t.half\t";
00023   Data32bitsDirective = "\t.word\t";
00024   Data64bitsDirective = nullptr;  // .xword is only supported by V9.
00025   ZeroDirective = "\t.skip\t";
00026   CommentString = "//";
00027 
00028   LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
00029   InlineAsmStart = "# InlineAsm Start";
00030   InlineAsmEnd = "# InlineAsm End";
00031   ZeroDirective = "\t.space\t";
00032   AscizDirective = "\t.string\t";
00033 
00034   SupportsDebugInformation = true;
00035   UsesELFSectionDirectiveForBSS  = true;
00036   ExceptionsType = ExceptionHandling::DwarfCFI;
00037 }