blob: 43005e7c740ce268f629252d88072a458c1a885c [file] [log] [blame]
Rafael Espindola5addace2014-07-23 22:26:07 +00001//==-- MCRelocationInfo.cpp ------------------------------------------------==//
Ahmed Bougachaad1084d2013-05-24 00:39:57 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "llvm/MC/MCRelocationInfo.h"
Chandler Carruth8a8cd2b2014-01-07 11:48:04 +000011#include "llvm-c/Disassembler.h"
Ahmed Bougachaad1084d2013-05-24 00:39:57 +000012#include "llvm/Object/ObjectFile.h"
13#include "llvm/Support/TargetRegistry.h"
Ahmed Bougachaad1084d2013-05-24 00:39:57 +000014
15using namespace llvm;
16
17MCRelocationInfo::MCRelocationInfo(MCContext &Ctx)
18 : Ctx(Ctx) {
19}
20
21MCRelocationInfo::~MCRelocationInfo() {
22}
23
24const MCExpr *
25MCRelocationInfo::createExprForRelocation(object::RelocationRef Rel) {
Craig Topperbb694de2014-04-13 04:57:38 +000026 return nullptr;
Ahmed Bougachaad1084d2013-05-24 00:39:57 +000027}
28
29const MCExpr *
30MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,
31 unsigned VariantKind) {
32 if (VariantKind != LLVMDisassembler_VariantKind_None)
Craig Topperbb694de2014-04-13 04:57:38 +000033 return nullptr;
Ahmed Bougachaad1084d2013-05-24 00:39:57 +000034 return SubExpr;
35}
36
Daniel Sanders50f17232015-09-15 16:17:27 +000037MCRelocationInfo *llvm::createMCRelocationInfo(const Triple &TT,
Daniel Sanders9aa7e382015-06-10 10:54:40 +000038 MCContext &Ctx) {
Ahmed Bougachaad1084d2013-05-24 00:39:57 +000039 return new MCRelocationInfo(Ctx);
40}