GCC Code Coverage Report


Directory: ../
File: src/linker/BitcodeLinker.h
Date: 2024-11-22 23:10:59
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 1 1 100.0%
Branches: 1 2 50.0%

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