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) {
8282 return ;
8383 }
8484 std::stringstream ss;
85- ss << " -frontend " ;
8685 for (auto opt : config.frontendOptions ) {
8786 ss << std::quoted (opt) << " " ;
8887 }
8988 ss << " \n " ;
90- trap << " // frontend-options : " << ss.str ();
89+ trap << " // extractor-args : " << ss.str ();
9190
9291 trap << " #0=*\n " ;
9392 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) {
3434 // TODO: print usage
3535 return 1 ;
3636 }
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- }
4337 // Required by Swift/LLVM
4438 PROGRAM_START (argc, argv);
4539 INITIALIZE_LLVM ();
@@ -49,9 +43,6 @@ int main(int argc, char** argv) {
4943 configuration.sourceArchiveDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_SOURCE_ARCHIVE_DIR" , " ." );
5044 std::vector<const char *> args;
5145 for (int i = 1 ; i < argc; i++) {
52- if (" -frontend" s == argv[i]) {
53- continue ;
54- }
5546 args.push_back (argv[i]);
5647 }
5748 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"
44
55QLTEST_LOG=" $CODEQL_EXTRACTOR_SWIFT_LOG_DIR " /qltest.log
66
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