2006-09-07 22:05:02 +00:00
|
|
|
//===-- AlphaTargetAsmInfo.cpp - Alpha asm properties -----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the AlphaTargetAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2008-11-03 18:22:42 +00:00
|
|
|
#include "AlphaTargetMachine.h"
|
2006-09-07 22:05:02 +00:00
|
|
|
#include "AlphaTargetAsmInfo.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2009-03-29 17:14:14 +00:00
|
|
|
AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
|
2008-11-03 18:22:42 +00:00
|
|
|
: TargetAsmInfo(TM) {
|
2006-09-07 22:05:02 +00:00
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
PrivateGlobalPrefix = "$";
|
2006-09-24 19:46:56 +00:00
|
|
|
JumpTableDirective = ".gprel32";
|
2006-10-06 22:52:33 +00:00
|
|
|
JumpTableDataSection = "\t.section .rodata\n";
|
2006-12-07 23:55:55 +00:00
|
|
|
WeakRefDirective = "\t.weak\t";
|
2006-09-07 22:05:02 +00:00
|
|
|
}
|
2009-03-29 17:14:14 +00:00
|
|
|
|
|
|
|
unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
|
|
|
|
return (TM.getRelocationModel() != Reloc::Static ?
|
|
|
|
Reloc::LocalOrGlobal : Reloc::Global);
|
|
|
|
}
|