LLVM
22.0.0git
include
llvm
ExecutionEngine
Orc
COFF.h
Go to the documentation of this file.
1
//===-------------- COFF.h - COFF format utilities --------------*- 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
// Contains utilities for load COFF relocatable object files.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_EXECUTIONENGINE_ORC_COFF_H
14
#define LLVM_EXECUTIONENGINE_ORC_COFF_H
15
16
#include "
llvm/Support/Compiler.h
"
17
#include "
llvm/Support/Error.h
"
18
#include "
llvm/Support/MemoryBuffer.h
"
19
20
#include <set>
21
#include <string>
22
23
namespace
llvm
{
24
25
namespace
object
{
26
class
Archive
;
27
}
// namespace object
28
29
namespace
orc
{
30
31
class
COFFImportFileScanner
{
32
public
:
33
COFFImportFileScanner
(std::set<std::string> &ImportedDynamicLibraries)
34
: ImportedDynamicLibraries(ImportedDynamicLibraries) {}
35
LLVM_ABI
Expected<bool>
36
operator()
(
object::Archive
&
A
,
MemoryBufferRef
MemberBuf,
size_t
Index)
const
;
37
38
private
:
39
std::set<std::string> &ImportedDynamicLibraries;
40
};
41
42
}
// namespace orc
43
}
// namespace llvm
44
45
#endif
// LLVM_EXECUTIONENGINE_ORC_MACHO_H
A
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
MemoryBuffer.h
llvm::Expected
Tagged union holding either a T or a Error.
Definition
Error.h:485
llvm::MemoryBufferRef
Definition
MemoryBufferRef.h:23
llvm::object::Archive
Definition
Archive.h:159
llvm::orc::COFFImportFileScanner::operator()
LLVM_ABI Expected< bool > operator()(object::Archive &A, MemoryBufferRef MemberBuf, size_t Index) const
Definition
COFF.cpp:16
llvm::orc::COFFImportFileScanner::COFFImportFileScanner
COFFImportFileScanner(std::set< std::string > &ImportedDynamicLibraries)
Definition
COFF.h:33
Error.h
llvm::object
Definition
DWARFDebugLoc.h:25
llvm::orc
Definition
AbsoluteSymbols.h:19
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
Generated on
for LLVM by
1.14.0