blob: aa40ff6a5ac7cedb61643d34ab806d952e89ab15 [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//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00007//
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 +000016using namespace llvm;
17
Chris Lattner8d4a0a32009-08-02 04:27:24 +000018MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
Bruno Cardoso Lopes43d526d2008-07-14 14:42:54 +000019 AlignmentIsInBytes = false;
20 COMMDirectiveTakesAlignment = true;
21 Data16bitsDirective = "\t.half\t";
22 Data32bitsDirective = "\t.word\t";
23 Data64bitsDirective = NULL;
24 PrivateGlobalPrefix = "$";
Bruno Cardoso Lopes43d526d2008-07-14 14:42:54 +000025 CommentString = "#";
Bruno Cardoso Lopes43d526d2008-07-14 14:42:54 +000026 ZeroDirective = "\t.space\t";
Bruno Cardoso Lopes753a9872007-11-12 19:49:57 +000027
Eli Friedmane2c74082009-08-03 02:22:28 +000028 if (TM.getRelocationModel() == Reloc::PIC_)
Bruno Cardoso Lopes753a9872007-11-12 19:49:57 +000029 JumpTableDirective = "\t.gpword\t";
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000030}