LLVM 19.0.0git
RelocationResolver.h
Go to the documentation of this file.
1//===- RelocVisitor.h - Visitor for object file relocations -----*- 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 provides a wrapper around all the different types of relocations
10// in different file formats, such that a client can handle them in a unified
11// manner by only implementing a minimal number of functions.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_OBJECT_RELOCATIONRESOLVER_H
16#define LLVM_OBJECT_RELOCATIONRESOLVER_H
17
18#include <cstdint>
19#include <utility>
20
21namespace llvm {
22namespace object {
23
24class ObjectFile;
25class RelocationRef;
26
29 uint64_t S, uint64_t LocData,
30 int64_t Addend);
31
32std::pair<SupportsRelocation, RelocationResolver>
34
36 uint64_t S, uint64_t LocData);
37
38} // end namespace object
39} // end namespace llvm
40
41#endif // LLVM_OBJECT_RELOCATIONRESOLVER_H
RelocType Type
Definition: COFFYAML.cpp:391
Interface for looking up the initializer for a variable name, used by Init::resolveReferences.
Definition: Record.h:2213
This class is the base class for all object file types.
Definition: ObjectFile.h:229
This is a value type class that represents a single relocation in the list of relocations in the obje...
Definition: ObjectFile.h:52
uint64_t(*)(uint64_t Type, uint64_t Offset, uint64_t S, uint64_t LocData, int64_t Addend) RelocationResolver
bool(*)(uint64_t) SupportsRelocation
uint64_t resolveRelocation(RelocationResolver Resolver, const RelocationRef &R, uint64_t S, uint64_t LocData)
std::pair< SupportsRelocation, RelocationResolver > getRelocationResolver(const ObjectFile &Obj)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Offset
Definition: DWP.cpp:456