LLVM  10.0.0svn
MCRelocationInfo.cpp
Go to the documentation of this file.
1 //===-- MCRelocationInfo.cpp ----------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 #include "llvm-c/Disassembler.h"
12 
13 using namespace llvm;
14 
16 
18 
19 const MCExpr *
21  unsigned VariantKind) {
22  if (VariantKind != LLVMDisassembler_VariantKind_None)
23  return nullptr;
24  return SubExpr;
25 }
26 
28  MCContext &Ctx) {
29  return new MCRelocationInfo(Ctx);
30 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
Context object for machine code objects.
Definition: MCContext.h:65
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:43
virtual const MCExpr * createExprForCAPIVariantKind(const MCExpr *SubExpr, unsigned VariantKind)
Create an MCExpr for the target-specific VariantKind.
MCRelocationInfo(MCContext &Ctx)