LLVM: include/llvm/Linker/Linker.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9#ifndef LLVM_LINKER_LINKER_H
10#define LLVM_LINKER_LINKER_H
11
15
16namespace llvm {
18
19
20
21
22
25
26public:
33
35
36
37
38
39
40
41
42
46 InternalizeCallback = {});
47
49 Module &Dest, std::unique_ptr Src, unsigned Flags = Flags::None,
50 std::function<void(Module &, const StringSet<> &)> InternalizeCallback =
51 {});
52};
53
54}
55
56#endif
Machine Check Debug Module
StringSet - A set-like wrapper for the StringMap.
Flags
Definition Linker.h:27
@ None
Definition Linker.h:28
@ OverrideFromSrc
Have symbols from Src shadow those in the Dest.
Definition Linker.h:30
@ LinkOnlyNeeded
Definition Linker.h:31
LLVM_ABI bool linkInModule(std::unique_ptr< Module > Src, unsigned Flags=Flags::None, std::function< void(Module &, const StringSet<> &)> InternalizeCallback={})
Link Src into the composite.
static LLVM_ABI bool linkModules(Module &Dest, std::unique_ptr< Module > Src, unsigned Flags=Flags::None, std::function< void(Module &, const StringSet<> &)> InternalizeCallback={})
This function links two modules together, with the resulting Dest module modified to be the composite...
LLVM_ABI Linker(Module &M)
A Module instance is used to store all the information related to an LLVM module.
StringSet - A wrapper for StringMap that provides set-like functionality.
This is an optimization pass for GlobalISel generic memory operations.