]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Target/Alpha/AlphaTargetAsmInfo.cpp
Update llvm to r84175.
[FreeBSD/FreeBSD.git] / lib / Target / Alpha / AlphaTargetAsmInfo.cpp
1 //===-- AlphaTargetAsmInfo.cpp - Alpha asm properties -----------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the AlphaTargetAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "AlphaTargetMachine.h"
15 #include "AlphaTargetAsmInfo.h"
16
17 using namespace llvm;
18
19 AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
20   : TargetAsmInfo(TM) {
21   AlignmentIsInBytes = false;
22   PrivateGlobalPrefix = "$";
23   JumpTableDirective = ".gprel32";
24   JumpTableDataSection = "\t.section .rodata\n";
25   WeakRefDirective = "\t.weak\t";
26 }
27
28 unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
29   return (TM.getRelocationModel() != Reloc::Static ?
30           Reloc::LocalOrGlobal : Reloc::Global);
31 }