blob: 2d3eff1c910840706d7ed2f3a6636b1da4807993 [file] [log] [blame]
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00001//===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
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.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the declarations of the MipsTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "MipsTargetAsmInfo.h"
Bruno Cardoso Lopes753a9872007-11-12 19:49:57 +000015#include "MipsTargetMachine.h"
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000016
17using namespace llvm;
18
19MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
Bruno Cardoso Lopes753a9872007-11-12 19:49:57 +000020 AlignmentIsInBytes = false;
21 Data16bitsDirective = "\t.half\t";
22 Data32bitsDirective = "\t.word\t";
23 PrivateGlobalPrefix = "$";
24 JumpTableDataSection = "\t.rdata";
25 CommentString = "#";
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";
31
32 if (TM.getRelocationModel() == Reloc::Static)
33 JumpTableDirective = "\t.word\t";
34 else
35 JumpTableDirective = "\t.gpword\t";
36
37 COMMDirectiveTakesAlignment = true;
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000038}