blob: 169eda71273306a13dc01ced18c30a399b7d3a06 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===-- SparcTargetAsmInfo.cpp - Sparc asm properties -----------*- C++ -*-===//
2//
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//
10// This file contains the declarations of the SparcTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SparcTargetAsmInfo.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 Lattnerc51585b2009-07-26 19:23:28 +000018SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM)
19 : ELFTargetAsmInfo(TM) {
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 = "!";
25 ConstantPoolSection = "\t.section \".rodata\",#alloc\n";
Anton Korobeynikovdb9a8952008-08-07 09:51:25 +000026 COMMDirectiveTakesAlignment = true;
Anton Korobeynikovb3b5d9b2008-08-08 18:25:29 +000027 CStringSection=".rodata.str";
Anton Korobeynikovdb9a8952008-08-07 09:51:25 +000028}
29
Anton Korobeynikovdb9a8952008-08-07 09:51:25 +000030