File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,11 @@ void Extractor::extractFile(swift::SourceFile& file) {
82
82
return ;
83
83
}
84
84
std::stringstream ss;
85
- ss << " -frontend " ;
86
85
for (auto opt : config.frontendOptions ) {
87
86
ss << std::quoted (opt) << " " ;
88
87
}
89
88
ss << " \n " ;
90
- trap << " // frontend-options : " << ss.str ();
89
+ trap << " // extractor-args : " << ss.str ();
91
90
92
91
trap << " #0=*\n " ;
93
92
trap << " files(#0, " << std::quoted (srcFilePath.str ().str ()) << " )\n " ;
Original file line number Diff line number Diff line change @@ -34,12 +34,6 @@ int main(int argc, char** argv) {
34
34
// TODO: print usage
35
35
return 1 ;
36
36
}
37
- // The frontend can be called in different modes, we are only interested
38
- // in -frontend mode
39
- // TODO: filter out at the tracer level
40
- if (" -frontend" s != argv[1 ]) {
41
- return 0 ;
42
- }
43
37
// Required by Swift/LLVM
44
38
PROGRAM_START (argc, argv);
45
39
INITIALIZE_LLVM ();
@@ -49,9 +43,6 @@ int main(int argc, char** argv) {
49
43
configuration.sourceArchiveDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_SOURCE_ARCHIVE_DIR" , " ." );
50
44
std::vector<const char *> args;
51
45
for (int i = 1 ; i < argc; i++) {
52
- if (" -frontend" s == argv[i]) {
53
- continue ;
54
- }
55
46
args.push_back (argv[i]);
56
47
}
57
48
std::copy (std::begin (args), std::end (args), std::back_inserter (configuration.frontendOptions ));
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ mkdir -p "$CODEQL_EXTRACTOR_SWIFT_TRAP_DIR"
4
4
5
5
QLTEST_LOG=" $CODEQL_EXTRACTOR_SWIFT_LOG_DIR " /qltest.log
6
6
7
- exec " $CODEQL_EXTRACTOR_SWIFT_ROOT /tools/$CODEQL_PLATFORM /extractor" -frontend - sdk " $CODEQL_EXTRACTOR_SWIFT_ROOT /qltest/$CODEQL_PLATFORM /sdk" -c * .swift >> $QLTEST_LOG 2>&1
7
+ exec " $CODEQL_EXTRACTOR_SWIFT_ROOT /tools/$CODEQL_PLATFORM /extractor" -sdk " $CODEQL_EXTRACTOR_SWIFT_ROOT /qltest/$CODEQL_PLATFORM /sdk" -c * .swift >> $QLTEST_LOG 2>&1
You can’t perform that action at this time.
0 commit comments