2016-11-02 00:47:30 +01:00
|
|
|
//===-- RISCVMCAsmInfo.cpp - RISCV Asm properties -------------------------===//
|
|
|
|
//
|
|
|
|
// 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 RISCVMCAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "RISCVMCAsmInfo.h"
|
|
|
|
#include "llvm/ADT/Triple.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
void RISCVMCAsmInfo::anchor() {}
|
|
|
|
|
|
|
|
RISCVMCAsmInfo::RISCVMCAsmInfo(const Triple &TT) {
|
2017-04-17 19:41:25 +02:00
|
|
|
CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
|
2016-11-02 00:47:30 +01:00
|
|
|
CommentString = "#";
|
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
SupportsDebugInformation = true;
|
2018-05-17 07:58:08 +02:00
|
|
|
Data16bitsDirective = "\t.half\t";
|
|
|
|
Data32bitsDirective = "\t.word\t";
|
2016-11-02 00:47:30 +01:00
|
|
|
}
|