Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 1 | //===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the declarations of the MipsTargetAsmInfo properties. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "MipsTargetAsmInfo.h" |
Bruno Cardoso Lopes | 753a987 | 2007-11-12 19:49:57 +0000 | [diff] [blame] | 15 | #include "MipsTargetMachine.h" |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 16 | |
| 17 | using namespace llvm; |
| 18 | |
| 19 | MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) { |
Bruno Cardoso Lopes | 43d526d | 2008-07-14 14:42:54 +0000 | [diff] [blame] | 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 | ReadOnlySection = "\t.rdata"; |
| 30 | ZeroDirective = "\t.space\t"; |
| 31 | BSSSection = "\t.section\t.bss"; |
| 32 | LCOMMDirective = "\t.lcomm\t"; |
Bruno Cardoso Lopes | 753a987 | 2007-11-12 19:49:57 +0000 | [diff] [blame] | 33 | |
Bruno Cardoso Lopes | b27cb55 | 2008-07-15 02:03:36 +0000 | [diff] [blame^] | 34 | if (!TM.getSubtarget<MipsSubtarget>().hasABICall()) |
Bruno Cardoso Lopes | 753a987 | 2007-11-12 19:49:57 +0000 | [diff] [blame] | 35 | JumpTableDirective = "\t.word\t"; |
| 36 | else |
| 37 | JumpTableDirective = "\t.gpword\t"; |
| 38 | |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 39 | } |