2006-09-07 22:05:02 +00:00
|
|
|
//===-- IA64TargetAsmInfo.cpp - IA64 asm properties -------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the IA64TargetAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "IA64TargetAsmInfo.h"
|
2009-03-29 17:14:35 +00:00
|
|
|
#include "llvm/Constants.h"
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2006-09-07 22:05:02 +00:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2008-08-07 09:52:35 +00:00
|
|
|
IA64TargetAsmInfo::IA64TargetAsmInfo(const TargetMachine &TM):
|
|
|
|
ELFTargetAsmInfo(TM) {
|
2006-09-07 22:05:02 +00:00
|
|
|
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=")";
|
2008-08-07 09:52:35 +00:00
|
|
|
|
2006-09-07 22:05:02 +00:00
|
|
|
// FIXME: would be nice to have rodata (no 'w') when appropriate?
|
|
|
|
ConstantPoolSection = "\n\t.section .data, \"aw\", \"progbits\"\n";
|
|
|
|
}
|
2008-08-07 09:52:35 +00:00
|
|
|
|
2009-03-29 17:14:35 +00:00
|
|
|
unsigned IA64TargetAsmInfo::RelocBehaviour() const {
|
|
|
|
return (TM.getRelocationModel() != Reloc::Static ?
|
|
|
|
Reloc::LocalOrGlobal : Reloc::Global);
|
|
|
|
}
|
|
|
|
|
2008-08-07 09:52:35 +00:00
|
|
|
// FIXME: Support small data/bss/rodata sections someday.
|