brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 21c7387 Raw
47 lines · cpp
1//===-- M68kMCAsmInfo.cpp - M68k Asm Properties -----------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This file contains the definitions of the M68k MCAsmInfo properties.11///12//===----------------------------------------------------------------------===//13 14#include "M68kMCAsmInfo.h"15 16#include "llvm/MC/MCExpr.h"17#include "llvm/TargetParser/Triple.h"18 19using namespace llvm;20 21const MCAsmInfo::AtSpecifier atSpecifiers[] = {22    {M68k::S_GOTOFF, "GOTOFF"},     {M68k::S_GOTPCREL, "GOTPCREL"},23    {M68k::S_GOTTPOFF, "GOTTPOFF"}, {M68k::S_PLT, "PLT"},24    {M68k::S_TLSGD, "TLSGD"},       {M68k::S_TLSLD, "TLSLD"},25    {M68k::S_TLSLDM, "TLSLDM"},     {M68k::S_TPOFF, "TPOFF"},26};27 28void M68kELFMCAsmInfo::anchor() {}29 30M68kELFMCAsmInfo::M68kELFMCAsmInfo(const Triple &T) {31  CodePointerSize = 4;32  CalleeSaveStackSlotSize = 4;33 34  IsLittleEndian = false;35 36  // Debug Information37  SupportsDebugInformation = true;38 39  // Exceptions handling40  ExceptionsType = ExceptionHandling::DwarfCFI;41 42  UseMotorolaIntegers = true;43  CommentString = ";";44 45  initializeAtSpecifiers(atSpecifiers);46}47