blob: 53a9bde9252679945f4f3e871ca7fa404eb1d3c3 [file] [log] [blame]
Shih-wei Liaoe264f622010-02-10 11:10:31 -08001//===-- SparcMCAsmInfo.cpp - Sparc 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 SparcMCAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SparcMCAsmInfo.h"
15#include "llvm/ADT/SmallVector.h"
16using namespace llvm;
17
18SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, const StringRef &TT) {
19 Data16bitsDirective = "\t.half\t";
20 Data32bitsDirective = "\t.word\t";
21 Data64bitsDirective = 0; // .xword is only supported by V9.
22 ZeroDirective = "\t.skip\t";
23 CommentString = "!";
24 HasLEB128 = true;
25 AbsoluteDebugSectionOffsets = true;
26 SupportsDebugInformation = true;
27
28 SunStyleELFSectionSwitchSyntax = true;
29 UsesELFSectionDirectiveForBSS = true;
30
31 WeakRefDirective = "\t.weak\t";
32
33 PrivateGlobalPrefix = ".L";
34}
35
36