1 //===-- MCRelocationInfo.cpp ----------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/MC/MCDisassembler/MCRelocationInfo.h"
11 #include "llvm-c/Disassembler.h"
12 #include "llvm/Support/TargetRegistry.h"
16 MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) : Ctx(Ctx) {}
18 MCRelocationInfo::~MCRelocationInfo() = default;
21 MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,
22 unsigned VariantKind) {
23 if (VariantKind != LLVMDisassembler_VariantKind_None)
28 MCRelocationInfo *llvm::createMCRelocationInfo(const Triple &TT,
30 return new MCRelocationInfo(Ctx);