1 //===-- MCRelocationInfo.cpp ----------------------------------------------===//
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-exception
7 //===----------------------------------------------------------------------===//
9 #include "llvm/MC/MCDisassembler/MCRelocationInfo.h"
10 #include "llvm-c/Disassembler.h"
11 #include "llvm/Support/TargetRegistry.h"
15 MCRelocationInfo::MCRelocationInfo(MCContext
&Ctx
) : Ctx(Ctx
) {}
17 MCRelocationInfo::~MCRelocationInfo() = default;
20 MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr
*SubExpr
,
21 unsigned VariantKind
) {
22 if (VariantKind
!= LLVMDisassembler_VariantKind_None
)
27 MCRelocationInfo
*llvm::createMCRelocationInfo(const Triple
&TT
,
29 return new MCRelocationInfo(Ctx
);