Similar to previous migration done for other targets (PowerPC, X86, ARM, etc). Switch from the confusing VariantKind to Specifier, which aligns with Arm and IBM AIX's documentation. In addition, rename *MCExpr::getKind, which confusingly shadows the base class getKind. In the future, relocation specifiers should be encoded as part of SystemZMCExpr instead of MCSymbolRefExpr.
20 lines
721 B
C++
20 lines
721 B
C++
//===-- SystemZTargetObjectFile.cpp - SystemZ Object Info -----------------===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "SystemZTargetObjectFile.h"
|
|
#include "MCTargetDesc/SystemZMCExpr.h"
|
|
#include "llvm/MC/MCExpr.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
using namespace llvm;
|
|
|
|
const MCExpr *SystemZELFTargetObjectFile::getDebugThreadLocalSymbol(
|
|
const MCSymbol *Sym) const {
|
|
return MCSymbolRefExpr::create(Sym, SystemZMCExpr::VK_DTPOFF, getContext());
|
|
}
|