Line | Branch | Exec | Source |
---|---|---|---|
1 | // Copyright (c) 2021-2024 ChilliBits. All rights reserved. | ||
2 | |||
3 | #pragma once | ||
4 | |||
5 | #include <llvm/Linker/Linker.h> | ||
6 | |||
7 | #include <CompilerPass.h> | ||
8 | #include <global/GlobalResourceManager.h> | ||
9 | |||
10 | namespace spice::compiler { | ||
11 | |||
12 | class BitcodeLinker : public CompilerPass { | ||
13 | public: | ||
14 | // Constructors | ||
15 | 1 | explicit BitcodeLinker(GlobalResourceManager &resourceManager) | |
16 |
1/2✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
|
1 | : CompilerPass(resourceManager), linker(*resourceManager.ltoModule) {} |
17 | |||
18 | // Public methods | ||
19 | void link(); | ||
20 | |||
21 | private: | ||
22 | // Private members | ||
23 | llvm::Linker linker; | ||
24 | }; | ||
25 | |||
26 | } // namespace spice::compiler | ||
27 |