blob: 6092ab67b5fc959ae5042e3c3e8efb2280f4f388 [file] [log] [blame]
Jim Laskey8e8de8f2006-09-07 22:05:02 +00001//===-- AlphaTargetAsmInfo.cpp - Alpha 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 AlphaTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
Dan Gohman8f092252008-11-03 18:22:42 +000014#include "AlphaTargetMachine.h"
Jim Laskey8e8de8f2006-09-07 22:05:02 +000015#include "AlphaTargetAsmInfo.h"
16
17using namespace llvm;
18
Anton Korobeynikov01209bc2009-03-29 17:14:14 +000019AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
Dan Gohman8f092252008-11-03 18:22:42 +000020 : TargetAsmInfo(TM) {
Jim Laskey8e8de8f2006-09-07 22:05:02 +000021 AlignmentIsInBytes = false;
22 PrivateGlobalPrefix = "$";
Andrew Lenharth0607a2f2006-09-24 19:46:56 +000023 JumpTableDirective = ".gprel32";
Chris Lattner0c79fed2006-10-06 22:52:33 +000024 JumpTableDataSection = "\t.section .rodata\n";
Andrew Lenharth0fb25902006-12-07 23:55:55 +000025 WeakRefDirective = "\t.weak\t";
Jim Laskey8e8de8f2006-09-07 22:05:02 +000026}
Anton Korobeynikov01209bc2009-03-29 17:14:14 +000027
28unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
29 return (TM.getRelocationModel() != Reloc::Static ?
30 Reloc::LocalOrGlobal : Reloc::Global);
31}