bef01c84fd0f6e795b0e12bec096a665ebaa6e2c
[oota-llvm.git] / lib / Target / Mips / MipsTargetAsmInfo.cpp
1 //===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the MipsTargetAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "MipsTargetAsmInfo.h"
15 #include "MipsTargetMachine.h"
16 using namespace llvm;
17
18 MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM)
19   : ELFTargetAsmInfo(TM) {
20
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";
28   CommentString               = "#";
29   ZeroDirective               = "\t.space\t";
30
31   if (!TM.getSubtarget<MipsSubtarget>().hasABICall())
32     JumpTableDirective = "\t.word\t";
33   else
34     JumpTableDirective = "\t.gpword\t";
35 }