diff options
| author | Zachary Turner <zturner@google.com> | 2014-08-14 16:01:25 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-08-14 16:01:25 +0000 |
| commit | 696b52878ff0c704d66539181d0ddda0d1b30c87 (patch) | |
| tree | 5acc766f31d5015cd3cbb10a3301fc76ac3021eb /lldb/source/Plugins/Process/Windows/ProcessWindows.cpp | |
| parent | 085c4b294b6439175f5ebf150e2be09c5cef9d37 (diff) | |
| download | bcm5719-llvm-696b52878ff0c704d66539181d0ddda0d1b30c87.tar.gz bcm5719-llvm-696b52878ff0c704d66539181d0ddda0d1b30c87.zip | |
Refactor FileAction out of ProcessLaunchInfo.
FileAction was previously a nested class in ProcessLaunchInfo.
This led to some unfortunate style consequences, such as requiring
the AddPosixSpawnFileAction() funciton to be defined in the Target
layer, instead of the more appropriate Host layer. This patch
makes FileAction its own independent class in the Target layer,
and then moves AddPosixSpawnFileAction() into Host as a result.
Differential Revision: http://reviews.llvm.org/D4877
llvm-svn: 215649
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/ProcessWindows.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Windows/ProcessWindows.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp index d4210257035..de625e3c4ba 100644 --- a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp @@ -18,6 +18,7 @@ #include "lldb/Host/Host.h" #include "lldb/Symbol/ObjectFile.h" #include "lldb/Target/DynamicLoader.h" +#include "lldb/Target/FileAction.h" #include "lldb/Target/Target.h" #include "ProcessWindows.h" @@ -30,7 +31,7 @@ namespace HANDLE GetStdioHandle(ProcessLaunchInfo &launch_info, int fd) { - const ProcessLaunchInfo::FileAction *action = launch_info.GetFileActionForFD(fd); + const FileAction *action = launch_info.GetFileActionForFD(fd); if (action == nullptr) return NULL; SECURITY_ATTRIBUTES secattr = {0}; |

