]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCAsmInfo.cpp
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / Target / RISCV / MCTargetDesc / RISCVMCAsmInfo.cpp
1 //===-- RISCVMCAsmInfo.cpp - RISCV 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 RISCVMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "RISCVMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
16 using namespace llvm;
17
18 void RISCVMCAsmInfo::anchor() {}
19
20 RISCVMCAsmInfo::RISCVMCAsmInfo(const Triple &TT) {
21   CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
22   CommentString = "#";
23   AlignmentIsInBytes = false;
24   SupportsDebugInformation = true;
25   Data16bitsDirective = "\t.half\t";
26   Data32bitsDirective = "\t.word\t";
27 }