/src/keystone/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
Line | Count | Source |
1 | | //===-- MipsMCAsmInfo.cpp - Mips Asm Properties ---------------------------===// |
2 | | // |
3 | | // The LLVM Compiler Infrastructure |
4 | | // |
5 | | // This file is distributed under the University of Illinois Open Source |
6 | | // License. See LICENSE.TXT for details. |
7 | | // |
8 | | //===----------------------------------------------------------------------===// |
9 | | // |
10 | | // This file contains the declarations of the MipsMCAsmInfo properties. |
11 | | // |
12 | | //===----------------------------------------------------------------------===// |
13 | | |
14 | | #include "MipsMCAsmInfo.h" |
15 | | #include "llvm/ADT/Triple.h" |
16 | | |
17 | | using namespace llvm_ks; |
18 | | |
19 | 5.07k | MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) { |
20 | 5.07k | if ((TheTriple.getArch() == Triple::mips) || |
21 | 4.57k | (TheTriple.getArch() == Triple::mips64)) |
22 | 618 | IsLittleEndian = false; |
23 | | |
24 | 5.07k | if ((TheTriple.getArch() == Triple::mips64el) || |
25 | 4.28k | (TheTriple.getArch() == Triple::mips64)) { |
26 | 4.28k | PointerSize = CalleeSaveStackSlotSize = 8; |
27 | 4.28k | } |
28 | | |
29 | 5.07k | AlignmentIsInBytes = false; |
30 | 5.07k | Data16bitsDirective = "\t.2byte\t"; |
31 | 5.07k | Data32bitsDirective = "\t.4byte\t"; |
32 | 5.07k | Data64bitsDirective = "\t.8byte\t"; |
33 | 5.07k | PrivateGlobalPrefix = "$"; |
34 | 5.07k | PrivateLabelPrefix = "$"; |
35 | 5.07k | CommentString = "#"; |
36 | 5.07k | ZeroDirective = "\t.space\t"; |
37 | 5.07k | GPRel32Directive = "\t.gpword\t"; |
38 | 5.07k | GPRel64Directive = "\t.gpdword\t"; |
39 | 5.07k | UseAssignmentForEHBegin = true; |
40 | 5.07k | SupportsDebugInformation = true; |
41 | 5.07k | ExceptionsType = ExceptionHandling::DwarfCFI; |
42 | 5.07k | DwarfRegNumForCFI = true; |
43 | 5.07k | } |