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"
19 MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
21 AlignmentIsInBytes = false;
22 COMMDirectiveTakesAlignment = true;
23 Data16bitsDirective = "\t.half\t";
24 Data32bitsDirective = "\t.word\t";
25 Data64bitsDirective = NULL;
26 PrivateGlobalPrefix = "$";
27 JumpTableDataSection = "\t.rdata";
29 ReadOnlySection = "\t.rdata";
30 ZeroDirective = "\t.space\t";
31 BSSSection = "\t.section\t.bss";
32 LCOMMDirective = "\t.lcomm\t";
34 if (!TM.getSubtarget<MipsSubtarget>().hasABICall())
35 JumpTableDirective = "\t.word\t";
37 JumpTableDirective = "\t.gpword\t";