65816-llvm-mos/src/llvm/lib/Target/W65816/MCTargetDesc/W65816MCAsmInfo.cpp
Scott Duensing 873eab4922 Checkpoint.
2026-04-25 17:07:28 -05:00

30 lines
1,001 B
C++

//===-- W65816MCAsmInfo.cpp - W65816 asm properties -----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file contains the implementation of the W65816MCAsmInfo class.
//
//===----------------------------------------------------------------------===//
#include "W65816MCAsmInfo.h"
using namespace llvm;
void W65816MCAsmInfo::anchor() {}
W65816MCAsmInfo::W65816MCAsmInfo(const Triple &TT) {
// The 65816 address space is 24 bits but LLVM's ELF writer emits 32-bit
// pointer-sized DWARF entries; store pointers as 32 bits for DWARF.
CodePointerSize = 4;
CalleeSaveStackSlotSize = 2;
CommentString = ";";
AlignmentIsInBytes = false;
UsesELFSectionDirectiveForBSS = true;
SupportsDebugInformation = true;
}