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 
anchor()18 void RISCVMCAsmInfo::anchor() {}
19 
RISCVMCAsmInfo(const Triple & TT)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 }
28