mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
3e409a37ac
providing a misleading facility. It's used once in the MIPS backend and hardcoded as "\t.globl\t" everywhere else. llvm-svn: 45338
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
//===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by Bruno Cardoso Lopes and is distributed under the
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations of the MipsTargetAsmInfo properties.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "MipsTargetAsmInfo.h"
|
|
#include "MipsTargetMachine.h"
|
|
|
|
using namespace llvm;
|
|
|
|
MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
|
|
AlignmentIsInBytes = false;
|
|
Data16bitsDirective = "\t.half\t";
|
|
Data32bitsDirective = "\t.word\t";
|
|
PrivateGlobalPrefix = "$";
|
|
JumpTableDataSection = "\t.rdata";
|
|
CommentString = "#";
|
|
ReadOnlySection = "\t.rdata";
|
|
ZeroDirective = "\t.space\t";
|
|
BSSSection = "\t.section\t.bss";
|
|
LCOMMDirective = "\t.lcomm\t";
|
|
|
|
if (TM.getRelocationModel() == Reloc::Static)
|
|
JumpTableDirective = "\t.word\t";
|
|
else
|
|
JumpTableDirective = "\t.gpword\t";
|
|
|
|
COMMDirectiveTakesAlignment = true;
|
|
}
|