
This is enough to compile and link but doesn't yet do anything particularly useful. Once an ASM parser and printer are added in the next two patches, the whole thing can be usefully tested. Differential Revision: https://reviews.llvm.org/D23562 llvm-svn: 285770
26 lines
825 B
C++
26 lines
825 B
C++
//===-- 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) {
|
|
PointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
|
|
CommentString = "#";
|
|
AlignmentIsInBytes = false;
|
|
SupportsDebugInformation = true;
|
|
}
|