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 {
79
79
80
80
Action::Kind
81
81
mapFrontendInvocationToActionKind (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
-
87
82
Action::Kind ActionKind;
88
83
FrontendOptions::ActionType ActionType =
89
84
Invocation.getFrontendOptions ().RequestedAction ;
Original file line number Diff line number Diff line change 79
79
#include " llvm/Support/Path.h"
80
80
#include " llvm/Support/raw_ostream.h"
81
81
82
+ #if __has_include(<unistd.h>)
83
+ #include < unistd.h>
84
+ #elif defined(_WIN32)
85
+ #include < process.h>
86
+ #endif
82
87
#include < algorithm>
83
88
#include < memory>
84
89
#include < unordered_set>
You can’t perform that action at this time.
0 commit comments