2007-06-06 15:42:06 +08:00
|
|
|
//===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 04:36:04 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-06 15:42:06 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the MipsTargetAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "MipsTargetAsmInfo.h"
|
2007-11-13 03:49:57 +08:00
|
|
|
#include "MipsTargetMachine.h"
|
2007-06-06 15:42:06 +08:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
|
2007-11-13 03:49:57 +08:00
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
Data16bitsDirective = "\t.half\t";
|
|
|
|
Data32bitsDirective = "\t.word\t";
|
|
|
|
PrivateGlobalPrefix = "$";
|
|
|
|
JumpTableDataSection = "\t.rdata";
|
|
|
|
CommentString = "#";
|
|
|
|
ReadOnlySection = "\t.rdata";
|
|
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
BSSSection = "\t.section\t.bss";
|
|
|
|
LCOMMDirective = "\t.lcomm\t";
|
|
|
|
|
|
|
|
if (TM.getRelocationModel() == Reloc::Static)
|
|
|
|
JumpTableDirective = "\t.word\t";
|
|
|
|
else
|
|
|
|
JumpTableDirective = "\t.gpword\t";
|
|
|
|
|
|
|
|
COMMDirectiveTakesAlignment = true;
|
2007-06-06 15:42:06 +08:00
|
|
|
}
|