blob: 1794ebc5876c46f5f7fbf691790e19424a10f806 [file] [log] [blame]
Chris Lattnerba8e7402009-08-02 04:30:59 +00001//===-- SparcTargetAsmInfo.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//
10// This file contains the declarations of the SparcTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SparcTargetAsmInfo.h"
Chris Lattnerf40761d2009-07-26 07:33:58 +000015#include "llvm/ADT/SmallVector.h"
Jim Laskey8e8de8f2006-09-07 22:05:02 +000016using namespace llvm;
17
Chris Lattnera7ac47c2009-08-12 07:22:17 +000018SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const Target &T,
19 const StringRef &TT) {
Jim Laskey8e8de8f2006-09-07 22:05:02 +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 Korobeynikov5b794b92008-08-07 09:51:25 +000025 COMMDirectiveTakesAlignment = true;
Chris Lattner5277b222009-08-08 20:43:12 +000026
27 SunStyleELFSectionSwitchSyntax = true;
Anton Korobeynikov5b794b92008-08-07 09:51:25 +000028}
29
Anton Korobeynikov5b794b92008-08-07 09:51:25 +000030