File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 4
4
#include " swift/extractor/trap/generated/TrapTags.h"
5
5
#include " swift/extractor/infra/file/TargetFile.h"
6
6
#include " swift/extractor/infra/file/Path.h"
7
- #include " swift/extractor/trap/LinkDomain .h"
7
+ #include " swift/extractor/infra/log/SwiftAssert .h"
8
8
9
9
namespace fs = std::filesystem;
10
10
using namespace std ::string_literals;
11
11
12
12
namespace codeql {
13
13
namespace {
14
+
15
+ Logger& logger () {
16
+ static Logger ret{" invocation" };
17
+ return ret;
18
+ }
19
+
14
20
std::string getModuleId (const std::string_view& name, const std::string_view& hash) {
15
21
auto ret = " module:" s;
16
22
ret += name;
@@ -108,10 +114,8 @@ void replaceMergedModulesImplementation(const SwiftExtractorState& state,
108
114
fs::copy (getTrapPath (state, mergeTarget, TrapType::linkage),
109
115
getTrapPath (state, mergedPartTarget, TrapType::linkage),
110
116
fs::copy_options::overwrite_existing, ec);
111
- if (ec) {
112
- std::cerr << " unable to replace trap implementation id for merged module '" << name << " ' ("
113
- << ec.message () << " )" ;
114
- }
117
+ CODEQL_ASSERT (!ec, " Unable to replace trap implementation id for merged module '{}' ({})" , name,
118
+ ec);
115
119
}
116
120
117
121
void emitModuleObjectDependencies (const SwiftExtractorState& state,
You can’t perform that action at this time.
0 commit comments