mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-15 23:46:30 +00:00

Similar to previous migration done for other targets (PowerPC, X86, ARM, etc). In the future, relocation specifiers should be encoded as part of M68kMCExpr instead of MCSymbolRefExpr.
52 lines
1.4 KiB
C++
52 lines
1.4 KiB
C++
//===-- M68kMCAsmInfo.cpp - M68k Asm Properties -----------------*- C++ -*-===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file
|
|
/// This file contains the definitions of the M68k MCAsmInfo properties.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "M68kMCAsmInfo.h"
|
|
#include "MCTargetDesc/M68kMCExpr.h"
|
|
|
|
#include "llvm/MC/MCExpr.h"
|
|
#include "llvm/TargetParser/Triple.h"
|
|
|
|
using namespace llvm;
|
|
|
|
const MCAsmInfo::VariantKindDesc variantKindDescs[] = {
|
|
{M68kMCExpr::VK_GOTOFF, "GOTOFF"},
|
|
{M68kMCExpr::VK_GOTPCREL, "GOTPCREL"},
|
|
{M68kMCExpr::VK_GOTTPOFF, "GOTTPOFF"},
|
|
{M68kMCExpr::VK_PLT, "PLT"},
|
|
{M68kMCExpr::VK_TLSGD, "TLSGD"},
|
|
{M68kMCExpr::VK_TLSLD, "TLSLD"},
|
|
{M68kMCExpr::VK_TLSLDM, "TLSLDM"},
|
|
{M68kMCExpr::VK_TPOFF, "TPOFF"},
|
|
};
|
|
|
|
void M68kELFMCAsmInfo::anchor() {}
|
|
|
|
M68kELFMCAsmInfo::M68kELFMCAsmInfo(const Triple &T) {
|
|
CodePointerSize = 4;
|
|
CalleeSaveStackSlotSize = 4;
|
|
|
|
IsLittleEndian = false;
|
|
|
|
// Debug Information
|
|
SupportsDebugInformation = true;
|
|
|
|
// Exceptions handling
|
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
|
|
|
UseMotorolaIntegers = true;
|
|
CommentString = ";";
|
|
|
|
initializeVariantKinds(variantKindDescs);
|
|
}
|