Add call frame setup instruction elimination and lowerid for bunch of call-related...
[llvm/msp430.git] / lib / Target / Alpha / AlphaTargetAsmInfo.cpp
blob6092ab67b5fc959ae5042e3c3e8efb2280f4f388
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.
12 //===----------------------------------------------------------------------===//
14 #include "AlphaTargetMachine.h"
15 #include "AlphaTargetAsmInfo.h"
17 using namespace llvm;
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";
28 unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
29 return (TM.getRelocationModel() != Reloc::Static ?
30 Reloc::LocalOrGlobal : Reloc::Global);