Path: blob/main/contrib/llvm-project/llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp
35266 views
//===-- MCRelocationInfo.cpp ----------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/MC/MCDisassembler/MCRelocationInfo.h"9#include "llvm-c/DisassemblerTypes.h"10#include "llvm/MC/TargetRegistry.h"1112using namespace llvm;1314MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) : Ctx(Ctx) {}1516MCRelocationInfo::~MCRelocationInfo() = default;1718const MCExpr *19MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,20unsigned VariantKind) {21if (VariantKind != LLVMDisassembler_VariantKind_None)22return nullptr;23return SubExpr;24}2526MCRelocationInfo *llvm::createMCRelocationInfo(const Triple &TT,27MCContext &Ctx) {28return new MCRelocationInfo(Ctx);29}303132