LLVM  8.0.1
MCRelocationInfo.cpp
Go to the documentation of this file.
1 //===-- MCRelocationInfo.cpp ----------------------------------------------===//
2 //
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 
11 #include "llvm-c/Disassembler.h"
13 
14 using namespace llvm;
15 
17 
19 
20 const MCExpr *
22  unsigned VariantKind) {
23  if (VariantKind != LLVMDisassembler_VariantKind_None)
24  return nullptr;
25  return SubExpr;
26 }
27 
29  MCContext &Ctx) {
30  return new MCRelocationInfo(Ctx);
31 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:36
Context object for machine code objects.
Definition: MCContext.h:63
MCRelocationInfo * createMCRelocationInfo(const Triple &TT, MCContext &Ctx)
#define LLVMDisassembler_VariantKind_None
The operand VariantKinds for symbolic disassembly.
Create MCExprs from relocations found in an object file.
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
virtual const MCExpr * createExprForCAPIVariantKind(const MCExpr *SubExpr, unsigned VariantKind)
Create an MCExpr for the target-specific VariantKind.
MCRelocationInfo(MCContext &Ctx)