blob: d37d6d23130596b63a6d6f82c240ec7b7d2b3705 [file] [log] [blame]
Chris Lattneraf76e592009-08-22 20:48:53 +00001//===-- SparcMCAsmInfo.cpp - Sparc asm properties -------------------------===//
Jim Laskey8e8de8f2006-09-07 22:05:02 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Jim Laskey8e8de8f2006-09-07 22:05:02 +00007//
8//===----------------------------------------------------------------------===//
9//
Chris Lattneraf76e592009-08-22 20:48:53 +000010// This file contains the declarations of the SparcMCAsmInfo properties.
Jim Laskey8e8de8f2006-09-07 22:05:02 +000011//
12//===----------------------------------------------------------------------===//
13
Chris Lattneraf76e592009-08-22 20:48:53 +000014#include "SparcMCAsmInfo.h"
Jim Laskey8e8de8f2006-09-07 22:05:02 +000015using namespace llvm;
16
Benjamin Kramer38e59892010-07-14 22:38:02 +000017SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, StringRef TT) {
Jim Laskey8e8de8f2006-09-07 22:05:02 +000018 Data16bitsDirective = "\t.half\t";
19 Data32bitsDirective = "\t.word\t";
20 Data64bitsDirective = 0; // .xword is only supported by V9.
21 ZeroDirective = "\t.skip\t";
22 CommentString = "!";
Richard Pennington930e4d92009-09-08 12:47:30 +000023 HasLEB128 = true;
Richard Pennington930e4d92009-09-08 12:47:30 +000024 SupportsDebugInformation = true;
Chris Lattner5277b222009-08-08 20:43:12 +000025
26 SunStyleELFSectionSwitchSyntax = true;
Venkatraman Govindarajueb2aa092009-08-26 18:24:12 +000027 UsesELFSectionDirectiveForBSS = true;
28
29 WeakRefDirective = "\t.weak\t";
Venkatraman Govindarajueb2aa092009-08-26 18:24:12 +000030
31 PrivateGlobalPrefix = ".L";
Anton Korobeynikov5b794b92008-08-07 09:51:25 +000032}
33
Anton Korobeynikov5b794b92008-08-07 09:51:25 +000034