LLVM 22.0.0git
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
17#include "llvm/Support/Error.h"
19
20#include <set>
21#include <string>
22
23namespace llvm {
24
25namespace object {
26class Archive;
27} // namespace object
28
29namespace orc {
30
32public:
33 COFFImportFileScanner(std::set<std::string> &ImportedDynamicLibraries)
34 : ImportedDynamicLibraries(ImportedDynamicLibraries) {}
36 operator()(object::Archive &A, MemoryBufferRef MemberBuf, size_t Index) const;
37
38private:
39 std::set<std::string> &ImportedDynamicLibraries;
40};
41
42} // namespace orc
43} // namespace llvm
44
45#endif // LLVM_EXECUTIONENGINE_ORC_MACHO_H
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
#define LLVM_ABI
Definition: Compiler.h:213
uint32_t Index
Tagged union holding either a T or a Error.
Definition: Error.h:485
LLVM_ABI Expected< bool > operator()(object::Archive &A, MemoryBufferRef MemberBuf, size_t Index) const
Definition: COFF.cpp:16
COFFImportFileScanner(std::set< std::string > &ImportedDynamicLibraries)
Definition: COFF.h:33
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18