XCoreMCAsmInfo.cpp revision 8b99622b9b0902c709a33a07efb3461bc7830852
1//===-- XCoreMCAsmInfo.cpp - XCore 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#include "XCoreMCAsmInfo.h"
11#include "llvm/ADT/StringRef.h"
12using namespace llvm;
13
14void XCoreMCAsmInfo::anchor() { }
15
16XCoreMCAsmInfo::XCoreMCAsmInfo(StringRef TT) {
17  SupportsDebugInformation = true;
18  Data16bitsDirective = "\t.short\t";
19  Data32bitsDirective = "\t.long\t";
20  Data64bitsDirective = 0;
21  ZeroDirective = "\t.space\t";
22  CommentString = "#";
23
24  PrivateGlobalPrefix = ".L";
25  AscizDirective = ".asciiz";
26
27  HiddenVisibilityAttr = MCSA_Invalid;
28  HiddenDeclarationVisibilityAttr = MCSA_Invalid;
29  ProtectedVisibilityAttr = MCSA_Invalid;
30
31  // Debug
32  HasLEB128 = true;
33  ExceptionsType = ExceptionHandling::DwarfCFI;
34  DwarfRegNumForCFI = true;
35}
36
37