LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
lib
MC
MCDisassembler
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
10
#include "
llvm/MC/MCDisassembler/MCRelocationInfo.h
"
11
#include "
llvm-c/Disassembler.h
"
12
#include "
llvm/Support/TargetRegistry.h
"
13
14
using namespace
llvm;
15
16
MCRelocationInfo::MCRelocationInfo(
MCContext
&Ctx)
17
: Ctx(Ctx) {
18
}
19
20
MCRelocationInfo::~MCRelocationInfo
() {
21
}
22
23
const
MCExpr
*
24
MCRelocationInfo::createExprForCAPIVariantKind
(
const
MCExpr
*SubExpr,
25
unsigned
VariantKind) {
26
if
(VariantKind !=
LLVMDisassembler_VariantKind_None
)
27
return
nullptr
;
28
return
SubExpr;
29
}
30
31
MCRelocationInfo
*
llvm::createMCRelocationInfo
(
const
Triple
&TT,
32
MCContext
&Ctx) {
33
return
new
MCRelocationInfo
(Ctx);
34
}
Disassembler.h
MCRelocationInfo.h
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:34
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:51
LLVMDisassembler_VariantKind_None
#define LLVMDisassembler_VariantKind_None
The operand VariantKinds for symbolic disassembly.
Definition:
include/llvm-c/Disassembler.h:94
llvm::MCRelocationInfo::~MCRelocationInfo
virtual ~MCRelocationInfo()
Definition:
MCRelocationInfo.cpp:20
llvm::createMCRelocationInfo
MCRelocationInfo * createMCRelocationInfo(const Triple &TT, MCContext &Ctx)
Definition:
MCRelocationInfo.cpp:31
llvm::MCRelocationInfo
Create MCExprs from relocations found in an object file.
Definition:
MCRelocationInfo.h:30
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition:
Triple.h:44
llvm::MCRelocationInfo::createExprForCAPIVariantKind
virtual const MCExpr * createExprForCAPIVariantKind(const MCExpr *SubExpr, unsigned VariantKind)
Create an MCExpr for the target-specific VariantKind.
Definition:
MCRelocationInfo.cpp:24
TargetRegistry.h
Generated on Wed Mar 8 2017 17:16:06 for LLVM by
1.8.6