blob: d622911e92c4f3b7b79d6f890452101009e04d8b [file] [log] [blame]
Alex Bradbury6b2cca72016-11-01 23:47:30 +00001//===-- 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"
16using namespace llvm;
17
18void RISCVMCAsmInfo::anchor() {}
19
20RISCVMCAsmInfo::RISCVMCAsmInfo(const Triple &TT) {
Konstantin Zhuravlyovdc77b2e2017-04-17 17:41:25 +000021 CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
Alex Bradbury6b2cca72016-11-01 23:47:30 +000022 CommentString = "#";
23 AlignmentIsInBytes = false;
24 SupportsDebugInformation = true;
25}