LLVM API Documentation

MCRelocationInfo.cpp
Go to the documentation of this file.
00001 //==-- MCRelocationInfo.cpp ------------------------------------------------==//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "llvm/MC/MCRelocationInfo.h"
00011 #include "llvm-c/Disassembler.h"
00012 #include "llvm/Object/ObjectFile.h"
00013 #include "llvm/Support/TargetRegistry.h"
00014 
00015 using namespace llvm;
00016 
00017 MCRelocationInfo::MCRelocationInfo(MCContext &Ctx)
00018   : Ctx(Ctx) {
00019 }
00020 
00021 MCRelocationInfo::~MCRelocationInfo() {
00022 }
00023 
00024 const MCExpr *
00025 MCRelocationInfo::createExprForRelocation(object::RelocationRef Rel) {
00026   return nullptr;
00027 }
00028 
00029 const MCExpr *
00030 MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,
00031                                                unsigned VariantKind) {
00032   if (VariantKind != LLVMDisassembler_VariantKind_None)
00033     return nullptr;
00034   return SubExpr;
00035 }
00036 
00037 MCRelocationInfo *llvm::createMCRelocationInfo(StringRef TT, MCContext &Ctx) {
00038   return new MCRelocationInfo(Ctx);
00039 }