blob: 6092ab67b5fc959ae5042e3c3e8efb2280f4f388 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===-- AlphaTargetAsmInfo.cpp - Alpha 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 AlphaTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
Dan Gohmana004d7b2008-11-03 18:22:42 +000014#include "AlphaTargetMachine.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015#include "AlphaTargetAsmInfo.h"
16
17using namespace llvm;
18
Anton Korobeynikov84a252f2009-03-29 17:14:14 +000019AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
Dan Gohmana004d7b2008-11-03 18:22:42 +000020 : TargetAsmInfo(TM) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021 AlignmentIsInBytes = false;
22 PrivateGlobalPrefix = "$";
23 JumpTableDirective = ".gprel32";
24 JumpTableDataSection = "\t.section .rodata\n";
25 WeakRefDirective = "\t.weak\t";
26}
Anton Korobeynikov84a252f2009-03-29 17:14:14 +000027
28unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
29 return (TM.getRelocationModel() != Reloc::Static ?
30 Reloc::LocalOrGlobal : Reloc::Global);
31}