Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 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) { |
Konstantin Zhuravlyov | dc77b2e | 2017-04-17 17:41:25 +0000 | [diff] [blame] | 21 | CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4; |
Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 22 | CommentString = "#"; |
| 23 | AlignmentIsInBytes = false; |
| 24 | SupportsDebugInformation = true; |
| 25 | } |