File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,6 @@ namespace {
7979
8080Action::Kind
8181mapFrontendInvocationToActionKind (const CompilerInvocation &Invocation) {
82- auto Executable = llvm::sys::path::filename (
83- Invocation.getFrontendOptions ().MainExecutablePath );
84- assert (Executable.str () == " swift-frontend" &&
85- " Expected a swift-frontend invocation." );
86-
8782 Action::Kind ActionKind;
8883 FrontendOptions::ActionType ActionType =
8984 Invocation.getFrontendOptions ().RequestedAction ;
Original file line number Diff line number Diff line change 7979#include " llvm/Support/Path.h"
8080#include " llvm/Support/raw_ostream.h"
8181
82+ #if __has_include(<unistd.h>)
83+ #include < unistd.h>
84+ #elif defined(_WIN32)
85+ #include < process.h>
86+ #endif
8287#include < algorithm>
8388#include < memory>
8489#include < unordered_set>
You can’t perform that action at this time.
0 commit comments