GCC Code Coverage Report


Directory: ../
File: src/linker/BitcodeLinker.cpp
Date: 2024-12-24 01:17:15
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 3 4 75.0%

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