blob: 5766e138a3c79c16f859c38e473f745fb5db6bf8 [file] [log] [blame]
Jim Laskey8e8de8f2006-09-07 22:05:02 +00001//===-- IA64TargetAsmInfo.cpp - IA64 asm properties -------------*- C++ -*-===//
2//
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 IA64TargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "IA64TargetAsmInfo.h"
15
16using namespace llvm;
17
Anton Korobeynikovdc3ca2e2008-08-07 09:52:35 +000018IA64TargetAsmInfo::IA64TargetAsmInfo(const TargetMachine &TM):
19 ELFTargetAsmInfo(TM) {
Jim Laskey8e8de8f2006-09-07 22:05:02 +000020 CommentString = "//";
21 Data8bitsDirective = "\tdata1\t"; // FIXME: check that we are
22 Data16bitsDirective = "\tdata2.ua\t"; // disabling auto-alignment
23 Data32bitsDirective = "\tdata4.ua\t"; // properly
24 Data64bitsDirective = "\tdata8.ua\t";
25 ZeroDirective = "\t.skip\t";
26 AsciiDirective = "\tstring\t";
27
28 GlobalVarAddrPrefix="";
29 GlobalVarAddrSuffix="";
30 FunctionAddrPrefix="@fptr(";
31 FunctionAddrSuffix=")";
Anton Korobeynikovdc3ca2e2008-08-07 09:52:35 +000032
Jim Laskey8e8de8f2006-09-07 22:05:02 +000033 // FIXME: would be nice to have rodata (no 'w') when appropriate?
34 ConstantPoolSection = "\n\t.section .data, \"aw\", \"progbits\"\n";
35}
Anton Korobeynikovdc3ca2e2008-08-07 09:52:35 +000036
37// FIXME: Support small data/bss/rodata sections someday.