mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
b5ceb50677
no longer depends on TM! llvm-svn: 77863
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
//===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations of the MipsTargetAsmInfo properties.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "MipsTargetAsmInfo.h"
|
|
#include "MipsTargetMachine.h"
|
|
using namespace llvm;
|
|
|
|
MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
|
|
AlignmentIsInBytes = false;
|
|
COMMDirectiveTakesAlignment = true;
|
|
Data16bitsDirective = "\t.half\t";
|
|
Data32bitsDirective = "\t.word\t";
|
|
Data64bitsDirective = NULL;
|
|
PrivateGlobalPrefix = "$";
|
|
CommentString = "#";
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
if (!TM.getSubtarget<MipsSubtarget>().hasABICall())
|
|
JumpTableDirective = "\t.word\t";
|
|
else
|
|
JumpTableDirective = "\t.gpword\t";
|
|
}
|