GCC Code Coverage Report


Directory: ../
File: src/linker/BitcodeLinker.cpp
Date: 2025-06-14 23:29:02
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 6 10 60.0%

Line Branch Exec Source
1 // Copyright (c) 2021-2025 ChilliBits. All rights reserved.
2
3 #include "BitcodeLinker.h"
4
5 #include <SourceFile.h>
6
7 #include <llvm/IR/Module.h> // IWYU pragma: keep
8
9 namespace spice::compiler {
10
11 1 void BitcodeLinker::link() {
12 // Link all source file modules in
13
5/8
✓ Branch 0 (2→3) taken 1 times.
✗ Branch 1 (2→24) not taken.
✓ Branch 2 (3→4) taken 1 times.
✗ Branch 3 (3→24) not taken.
✓ Branch 4 (4→5) taken 1 times.
✗ Branch 5 (4→24) not taken.
✓ Branch 6 (16→6) taken 2 times.
✓ Branch 7 (16→17) taken 1 times.
3 for (const auto &sourceFile : resourceManager.sourceFiles | std::views::values)
14
1/2
✓ Branch 0 (11→12) taken 2 times.
✗ Branch 1 (11→18) not taken.
2 linker.linkInModule(std::move(sourceFile->llvmModule), llvm::Linker::None);
15 1 }
16
17 } // namespace spice::compiler
18