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/MCRelocationInfo.h"
11 #include "llvm-c/Disassembler.h"
12 #include "llvm/Object/ObjectFile.h"
13 #include "llvm/Support/TargetRegistry.h"
17 MCRelocationInfo::MCRelocationInfo(MCContext &Ctx)
21 MCRelocationInfo::~MCRelocationInfo() {
25 MCRelocationInfo::createExprForRelocation(object::RelocationRef Rel) {
30 MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,
31 unsigned VariantKind) {
32 if (VariantKind != LLVMDisassembler_VariantKind_None)
37 MCRelocationInfo *llvm::createMCRelocationInfo(StringRef TT, MCContext &Ctx) {
38 return new MCRelocationInfo(Ctx);