summaryrefslogtreecommitdiff
path: root/lib/Target/IA64/IA64TargetAsmInfo.cpp
blob: a6f4c595006c6b1bcc4cb5a9a38f646fc62fa2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//===-- IA64TargetAsmInfo.cpp - IA64 asm properties -------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declarations of the IA64TargetAsmInfo properties.
//
//===----------------------------------------------------------------------===//

#include "IA64TargetAsmInfo.h"
#include "llvm/Constants.h"
#include "llvm/Target/TargetMachine.h"

using namespace llvm;

IA64TargetAsmInfo::IA64TargetAsmInfo(const TargetMachine &TM):
  ELFTargetAsmInfo(TM) {
  CommentString = "//";
  Data8bitsDirective = "\tdata1\t";     // FIXME: check that we are
  Data16bitsDirective = "\tdata2.ua\t"; // disabling auto-alignment
  Data32bitsDirective = "\tdata4.ua\t"; // properly
  Data64bitsDirective = "\tdata8.ua\t";
  ZeroDirective = "\t.skip\t";
  AsciiDirective = "\tstring\t";

  GlobalVarAddrPrefix="";
  GlobalVarAddrSuffix="";
  FunctionAddrPrefix="@fptr(";
  FunctionAddrSuffix=")";

  // FIXME: would be nice to have rodata (no 'w') when appropriate?
  ConstantPoolSection = "\n\t.section .data, \"aw\", \"progbits\"\n";
}

// FIXME: Support small data/bss/rodata sections someday.