mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68006 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
//===-- AlphaTargetAsmInfo.cpp - Alpha asm properties -----------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations of the AlphaTargetAsmInfo properties.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "AlphaTargetMachine.h"
|
|
#include "AlphaTargetAsmInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
AlphaTargetAsmInfo::AlphaTargetAsmInfo(const AlphaTargetMachine &TM)
|
|
: TargetAsmInfo(TM) {
|
|
AlignmentIsInBytes = false;
|
|
PrivateGlobalPrefix = "$";
|
|
JumpTableDirective = ".gprel32";
|
|
JumpTableDataSection = "\t.section .rodata\n";
|
|
WeakRefDirective = "\t.weak\t";
|
|
}
|
|
|
|
unsigned AlphaTargetAsmInfo::RelocBehaviour() const {
|
|
return (TM.getRelocationModel() != Reloc::Static ?
|
|
Reloc::LocalOrGlobal : Reloc::Global);
|
|
}
|