LLVM
22.0.0git
include
llvm
MC
MCDisassembler
MCRelocationInfo.h
Go to the documentation of this file.
1
//===- llvm/MC/MCRelocationInfo.h -------------------------------*- C++ -*-===//
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
//
9
// This file declares the MCRelocationInfo class, which provides methods to
10
// create MCExprs from relocations, either found in an object::ObjectFile
11
// (object::RelocationRef), or provided through the C API.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef LLVM_MC_MCDISASSEMBLER_MCRELOCATIONINFO_H
16
#define LLVM_MC_MCDISASSEMBLER_MCRELOCATIONINFO_H
17
18
#include "
llvm/Support/Compiler.h
"
19
20
namespace
llvm
{
21
22
class
MCContext;
23
class
MCExpr;
24
25
/// Create MCExprs from relocations found in an object file.
26
class
LLVM_ABI
MCRelocationInfo
{
27
protected
:
28
MCContext
&
Ctx
;
29
30
public
:
31
MCRelocationInfo
(
MCContext
&Ctx);
32
MCRelocationInfo
(
const
MCRelocationInfo
&) =
delete
;
33
MCRelocationInfo
&
operator=
(
const
MCRelocationInfo
&) =
delete
;
34
virtual
~MCRelocationInfo
();
35
36
/// Create an MCExpr for the target-specific \p VariantKind.
37
/// The VariantKinds are defined in llvm-c/Disassembler.h.
38
/// Used by MCExternalSymbolizer.
39
/// \returns If possible, an MCExpr corresponding to VariantKind, else 0.
40
virtual
const
MCExpr
*createExprForCAPIVariantKind(
const
MCExpr
*SubExpr,
41
unsigned
VariantKind);
42
};
43
44
}
// end namespace llvm
45
46
#endif
// LLVM_MC_MCDISASSEMBLER_MCRELOCATIONINFO_H
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition:
Compiler.h:213
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:83
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:34
llvm::MCRelocationInfo
Create MCExprs from relocations found in an object file.
Definition:
MCRelocationInfo.h:26
llvm::MCRelocationInfo::operator=
MCRelocationInfo & operator=(const MCRelocationInfo &)=delete
llvm::MCRelocationInfo::MCRelocationInfo
MCRelocationInfo(const MCRelocationInfo &)=delete
llvm::MCRelocationInfo::Ctx
MCContext & Ctx
Definition:
MCRelocationInfo.h:28
llvm::MCRelocationInfo::~MCRelocationInfo
virtual ~MCRelocationInfo()
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Sat Aug 30 2025 05:10:32 for LLVM by
1.9.6