blob: cb6da961b83e318041d591d01eb4931bd9adeb91 [file] [log] [blame]
Chris Lattner621c44d2009-08-22 20:48:53 +00001//===-- SparcMCAsmInfo.cpp - Sparc asm properties -------------------------===//
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
9//
Chris Lattner621c44d2009-08-22 20:48:53 +000010// This file contains the declarations of the SparcMCAsmInfo properties.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011//
12//===----------------------------------------------------------------------===//
13
Chris Lattner621c44d2009-08-22 20:48:53 +000014#include "SparcMCAsmInfo.h"
Chris Lattner94d8a762009-07-26 07:33:58 +000015#include "llvm/ADT/SmallVector.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016using namespace llvm;
17
Chris Lattnera9182162010-01-19 22:42:28 +000018SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, const StringRef &TT)
19 : MCAsmInfo(/*isLittleEndian*/ false) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020 Data16bitsDirective = "\t.half\t";
21 Data32bitsDirective = "\t.word\t";
22 Data64bitsDirective = 0; // .xword is only supported by V9.
23 ZeroDirective = "\t.skip\t";
24 CommentString = "!";
Anton Korobeynikovdb9a895b2008-08-07 09:51:25 +000025 COMMDirectiveTakesAlignment = true;
Richard Penningtonb246f532009-09-08 12:47:30 +000026 HasLEB128 = true;
27 AbsoluteDebugSectionOffsets = true;
28 SupportsDebugInformation = true;
Chris Lattnera8b97f42009-08-08 20:43:12 +000029
30 SunStyleELFSectionSwitchSyntax = true;
Venkatraman Govindaraju66448032009-08-26 18:24:12 +000031 UsesELFSectionDirectiveForBSS = true;
32
33 WeakRefDirective = "\t.weak\t";
34 SetDirective = "\t.set\t";
35
36 PrivateGlobalPrefix = ".L";
Anton Korobeynikovdb9a895b2008-08-07 09:51:25 +000037}
38
Anton Korobeynikovdb9a895b2008-08-07 09:51:25 +000039