1 //===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // 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"
16 #include "llvm/GlobalVariable.h"
20 MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM)
21 : ELFTargetAsmInfo(TM) {
23 AlignmentIsInBytes = false;
24 COMMDirectiveTakesAlignment = true;
25 Data16bitsDirective = "\t.half\t";
26 Data32bitsDirective = "\t.word\t";
27 Data64bitsDirective = NULL;
28 PrivateGlobalPrefix = "$";
29 JumpTableDataSection = "\t.rdata";
31 ZeroDirective = "\t.space\t";
32 BSSSection = "\t.section\t.bss";
33 CStringSection = ".rodata.str";
35 if (!TM.getSubtarget<MipsSubtarget>().hasABICall())
36 JumpTableDirective = "\t.word\t";
38 JumpTableDirective = "\t.gpword\t";