1 //===-- AlphaTargetAsmInfo.cpp - Alpha asm properties -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the AlphaTargetAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "AlphaTargetMachine.h"
15 #include "AlphaTargetAsmInfo.h"
19 AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine
&TM
)
21 AlignmentIsInBytes
= false;
22 PrivateGlobalPrefix
= "$";
23 JumpTableDirective
= ".gprel32";
24 JumpTableDataSection
= "\t.section .rodata\n";
25 WeakRefDirective
= "\t.weak\t";
28 unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
29 return (TM
.getRelocationModel() != Reloc::Static
?
30 Reloc::LocalOrGlobal
: Reloc::Global
);