summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-06-19 12:26:22 +0000
committerPavel Labath <labath@google.com>2017-06-19 12:26:22 +0000
commit319b38398e0d990f88db34dc562c73ce847cf910 (patch)
tree210c560095f2c147098a57a7c7ef784ab5adeb43 /clang/lib/Basic/SourceLocation.cpp
parent89cfff03eee7f0be6e21510cf3e0337beb837583 (diff)
downloadbcm5719-llvm-319b38398e0d990f88db34dc562c73ce847cf910.tar.gz
bcm5719-llvm-319b38398e0d990f88db34dc562c73ce847cf910.zip
Delete ProcessLauncherPosix
Summary: ProcessLauncherPosix was using posix_spawn for launching the process, but this function is not available on all platforms we support, and even where it was avaialable, it did not support the full range of options we require for launching (most importantly, launching in stop-on-entry mode). For these reasons, the set of ifdefs around these functions has grown untractably large, and we were forced to implement our own launcher from more basic primitives anyway (ProcessLauncherPosixFork -- used on Linux, Android, and NetBSD). Therefore, I remove this class, and move the relevant parts of the code to the darwin-specific Host.mm file. This is the platform that code was originally written for anyway, and it's the only platform where this implementation makes sense (e.g. the lack of the "thread-specific working directory" concept makes these functions racy on all other platforms). This allows us to remove a lot of ifdefs and simplify the code. Effectively, the only change this introduces is that FreeBSD will now use the fork-based launcher instead of posix_spawnp. That sholdn't be a problem as this approach works at least on one other BSD-based system already. Reviewers: krytarowski, emaste, jingham Subscribers: srhines, mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D34236 llvm-svn: 305686
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud