1 //===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Bruno Cardoso Lopes and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the MipsTargetAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "MipsTargetAsmInfo.h"
15 #include "MipsTargetMachine.h"
19 MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
20 AlignmentIsInBytes = false;
21 Data16bitsDirective = "\t.half\t";
22 Data32bitsDirective = "\t.word\t";
23 PrivateGlobalPrefix = "$";
24 JumpTableDataSection = "\t.rdata";
26 ReadOnlySection = "\t.rdata";
27 ZeroDirective = "\t.space\t";
28 BSSSection = "\t.section\t.bss";
29 GlobalDirective = "\t.globl\t";
30 LCOMMDirective = "\t.lcomm\t";
32 if (TM.getRelocationModel() == Reloc::Static)
33 JumpTableDirective = "\t.word\t";
35 JumpTableDirective = "\t.gpword\t";
37 COMMDirectiveTakesAlignment = true;